Oracle connection LIVECODE comercial License

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jdarknet
Posts: 2
Joined: Sun Aug 17, 2014 12:52 pm

Oracle connection LIVECODE comercial License

Post by jdarknet » Thu Sep 18, 2014 9:47 pm

Hi,

Has anyone been able to connect oracle from OS X?, I have LC commercially licensed, the message error is " revdberr, invalida database type"

Regards,


Julián

D4vidrim
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 61
Joined: Fri May 31, 2013 9:32 am

Re: Oracle connection LIVECODE comercial License

Post by D4vidrim » Wed Nov 12, 2014 12:51 pm

same problem here.

It doesn't work on LC6.7 and 7.0

D4vidrim
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 61
Joined: Fri May 31, 2013 9:32 am

Re: Oracle connection LIVECODE comercial License

Post by D4vidrim » Tue Jan 13, 2015 8:47 pm

Does anyone have any advice to solve the problem?

Thanks!

sai
Posts: 5
Joined: Thu Jan 29, 2015 3:27 am
Location: India

Re: Oracle connection LIVECODE comercial License

Post by sai » Thu Jan 29, 2015 3:40 am

Please Answer for this Question..Oracle not responding while connecting this is my Code
on mouseUp
global gConnectionID
put "ORCL" in the dbType
put "localhost:1521" in the dbHost
put "DB_EXTRACT" in the dbName
put "DB_EXTRACT" in the dbUsername
put "DB_EXTRACT" in the dbPassword
put revOpenDatabase(dbType, dbHost,dbName, dbUsername,dbPassword) into tResult
if tResult is a number then
put tResult into gConnectionID
answer info "Connected to the database." & cr & "Connection ID = " & gConnectionID
else
put empty into gConnectionID
answer error "Unable to connect to the database :" & cr & tResult
end if

end mouseUp


ERROR THAT IAM GETTING:button "DbConnect": (Expression: bad factor), char 32 in livecode

sai
Posts: 5
Joined: Thu Jan 29, 2015 3:27 am
Location: India

Re: Oracle connection LIVECODE comercial License

Post by sai » Thu Jan 29, 2015 4:14 am

Finally Got Solved i used "in the" in code changed "into"
It's Working Now Getting a New error

ERROR:Unable to connect the database:revdberr,invalid database type.

This is my code after chaging

on mouseUp
global gConnectionID
put "ORCL" into dbType
put "localhost:1521" into dbHost
put "XXXXX" into dbName
put "XXXXX" into dbUsername
put "XXXXX" into dbPassword

put revOpenDatabase(dbType, dbHost,dbName, dbUsername,dbPassword) into tResult
if tResult is a number then
put tResult into gConnectionID
answer info "Connected to the database." & cr & "Connection ID = " & gConnectionID
else
put empty into gConnectionID
answer error "Unable to connect to the database :" & cr & tResult
end if

end mouseUp

Klaus
Posts: 13878
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Oracle connection LIVECODE comercial License

Post by Klaus » Thu Jan 29, 2015 1:57 pm

Hi sai,

a quick look into the dictionary brings enlightment! :D
...
## BAD:
## put "ORCL" into dbType

## Good:
put "oracle" into dbType
...

Best

Klaus

sai
Posts: 5
Joined: Thu Jan 29, 2015 3:27 am
Location: India

Re: Oracle connection LIVECODE comercial License

Post by sai » Fri Jan 30, 2015 2:39 am

Thanks K....

Klaus
Posts: 13878
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Oracle connection LIVECODE comercial License

Post by Klaus » Fri Jan 30, 2015 1:37 pm

My name is Klaus, I think you should take that much time! 8)

sai
Posts: 5
Joined: Thu Jan 29, 2015 3:27 am
Location: India

Re: Oracle connection LIVECODE comercial License

Post by sai » Wed Feb 04, 2015 10:14 am

Sorry Klaus...

Iam Trying to Connect SQL Express 2012 Database with LC...Want to Extract the data

put revOpenDatabase("SQL", "DSN",, "testuser", "password") into tResult

Iam Getting Following Error

ERROR : : The Specified DSN contains an architecture mismatch between the Driver and Application

How to Rectify It

Klaus
Posts: 13878
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Oracle connection LIVECODE comercial License

Post by Klaus » Wed Feb 04, 2015 1:23 pm

Hi sai,

come on, why do you not take a look into the dictionary -> "revOpenDatabase", to see what types of databases are supported? 8)
Whatever a "SQL Express 2012 Database" is, it is not directly supported by LC, see dictionary!

Maybe you can connect via ODBC, but I have no idea.


Best

Klaus

sai
Posts: 5
Joined: Thu Jan 29, 2015 3:27 am
Location: India

Re: Oracle connection LIVECODE comercial License

Post by sai » Thu Feb 05, 2015 2:31 am

Hie Klaus,

Ya iam Connecting now through ODBC.

Thank You.

Post Reply

Return to “Databases”