|
View:
New views
20 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
Re: Repost - Install questionsHAS wrote:
>Sorry about the repost, but I posted the last one before my joining the group >was completed and the moderator never released it. > >Please bear with the Unix clueless. A lot of this is trying to understand, >not necessarily being thought of as good ideas, but I want to know what is >possible and what is not possible. > >When you build unixODBC-2.2.12 and do make install, outside of all the files >it places in the various directories, does it do anything that would change >any system startup files, add any environment variables? > >Same question if you use one of the packages from the unixodbc site to >install it. > >If you didn't have access to root and you did the install and used the >--prefix to send the files to a directory you had access to, is it possible >to make it work? > >If yes, what would you have to do? I'm guessing add the installed lib dir >to the LD_LIBRARY_PATH and the installed bin dir to the PATH. Maybe set the >ODBCINI? If this is possible please correct/add to remove to these three >items. > > > All that is ok and correct. There is no startup as its not a daemon process. I guess the question is what are you intending to do with unixODBC, knowing that would allow a better answer for you. -- Nick Gorham Easysoft Limited http://www.easysoft.com, http://www.unixODBC.org _______________________________________________ unixODBC-support mailing list unixODBC-support@... http://mail.easysoft.com/mailman/listinfo/unixodbc-support |
|
|
Repost - Install questionsSorry about the repost, but I posted the last one before my joining the group was completed and the moderator never released it.
Please bear with the Unix clueless. A lot of this is trying to understand, not necessarily being thought of as good ideas, but I want to know what is possible and what is not possible. When you build unixODBC-2.2.12 and do make install, outside of all the files it places in the various directories, does it do anything that would change any system startup files, add any environment variables? Same question if you use one of the packages from the unixodbc site to install it. If you didn't have access to root and you did the install and used the --prefix to send the files to a directory you had access to, is it possible to make it work? If yes, what would you have to do? I'm guessing add the installed lib dir to the LD_LIBRARY_PATH and the installed bin dir to the PATH. Maybe set the ODBCINI? If this is possible please correct/add to remove to these three items. If no, if you have someone with root access install the package for 2.1.x is an upgrade possible by deleting/replacing the files? Thanks in advance for any insights. |
|
|
Re: Repost - Install questionsHAS wrote:
>>All that is ok and correct. There is no startup as its not a daemon >>process. I guess the question is what are you intending to do with >>unixODBC, knowing that would allow a better answer for you. >> >> > >Being used to communicate between kdb+ (q) and Oracle. It was done before >at this location but person charged with creating a how to document didn't >and left. Turn around time with DBA's with root access is minimum one day >per question so I'd like to work it out in a non root environment and once >I'm comfortable it's working and I have good instructions I want to forward >it to those with root access. > > non root. assuming you can setup any Oracle client info needed if its not using instantclient. -- Nick Gorham Easysoft Limited http://www.easysoft.com, http://www.unixODBC.org _______________________________________________ unixODBC-support mailing list unixODBC-support@... http://mail.easysoft.com/mailman/listinfo/unixodbc-support |
|
|
Re: Repost - Install questions> All that is ok and correct. There is no startup as its not a daemon
> process. I guess the question is what are you intending to do with > unixODBC, knowing that would allow a better answer for you. Being used to communicate between kdb+ (q) and Oracle. It was done before at this location but person charged with creating a how to document didn't and left. Turn around time with DBA's with root access is minimum one day per question so I'd like to work it out in a non root environment and once I'm comfortable it's working and I have good instructions I want to forward it to those with root access. |
|
|
Re: Repost - Install questions> Ok, all you need is unixODBC and a Oracle driver then. Should be fine as
> non root. assuming you can setup any Oracle client info needed if its > not using instantclient. I got stuck with this error: [IM004][unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed I looked in the forum and saw some info relating to DB2 and did some net searches and found others with the same problem but no solution. tnsping works and I can use sqlplus and other utilities to connect to oracle. Any thoughts on what this error message is actually telling me and perhaps how to resolve it? Thanks. |
|
|
Re: Repost - Install questionsHAS wrote:
>>Ok, all you need is unixODBC and a Oracle driver then. Should be fine as >>non root. assuming you can setup any Oracle client info needed if its >>not using instantclient. >> >> > >I got stuck with this error: [IM004][unixODBC][Driver Manager]Driver's >SQLAllocHandle on SQL_HANDLE_HENV failed > >I looked in the forum and saw some info relating to DB2 and did some net >searches and found others with the same problem but no solution. tnsping >works and I can use sqlplus and other utilities to connect to oracle. Any >thoughts on what this error message is actually telling me and perhaps how >to resolve it? > >Thanks. > > > -- Nick _______________________________________________ unixODBC-support mailing list unixODBC-support@... http://mail.easysoft.com/mailman/listinfo/unixodbc-support |
|
|
Re: Repost - Install questions> What driver are you using, show us your odbcinst.ini and odbc.ini
Below are both, the last line of the odbc.ini is something I am playing around with, I think the answer is related to that, something needs to be defined that isn't, but that's just based on what I've found on this forum and the net searches. > odbcinst.ini [Oracle10gODBCDriver] Description = Oracle 10g Linux ODBC driver Driver = /ieqqammk1/oracle/product/10.2.0/lib32/libsqora.so.10.1 Setup = FileUsage = CPTimeout = CPReuse = [ODBC] DEBUG = 1 TraceFile = /export/home/tcaadmin/howard/sql.log Trace = Yes > odbc.ini [IEQQ2] Application Attributes = T Attributes = W BatchAutocommitMode = IfAllSuccessful CloseCursor = F DisableDPM = F DisableMTS = T Driver = Oracle10gODBCDriver DSN = IEQQ2 EXECSchemaOpt = EXECSyntax = T Failover = T FailoverDelay = 10 FailoverRetryCount = 10 FetchBufferSize = 64000 ForceWCHAR = F Lobs = T Longs = T MetadataIdDefault = F QueryTimeout = T ResultSets = T ServerName = ieqq2 SQLGetData extensions = F Translation DLL = Translation Option = 0 UserID = tca_read_user DMEnvAttr = SQL_ATTR_UNIXODBC_ENVATTR={ORACLE_HOME=/ieqqammk1/oracle/product/10.2.0} |
|
|
|
|
|
RE: Repost - Install questions> It's most likely not a uniXODBC but an Oracle driver issue.
> > If you are using instantclient-basiclite have a look at this thread > http://forums.oracle.com/forums/thread.jspa?messageID=1433370 Thanks for the info. I looked at the thread and unless I'm missing something I see two things, copying from windows (which I didn't) and Basic vs Basic lite. Anyone know if there is a way to determine which was installed? I didn't do the install, it's unlikely it was the lite but always good to rule things out. I don't doubt the problem is some missing env variable or file and that it's more than likely related to the driver itself, but according to one document I found online, IM messages are from the driver manager, so maybe there is a way to get more detail on what it's really complaining about. I'm going to try and see if I can match the trace log to the program code, but if anyone has thoughts or answer don't let that stop you from sharing! Thanks. |
|
|
Re: Repost - Install questionsHAS wrote:
>>the last line of the odbc.ini is something I am playing around with, I >> >> >think the answer is related to that, > something needs to be defined that >isn't, but that's just based on what I've found on this forum and the > net >searches. > > > >>DMEnvAttr = >>SQL_ATTR_UNIXODBC_ENVATTR={ORACLE_HOME=/ieqqammk1/oracle/product/10.2.0} >> >> > >Below is from the trace log, I notice the ret = -1, which makes me think I >have a bad syntax in the odbc.ini? Well at least it makes me think it's not >working but I don't know exactly where in the code that's getting written to >the log. I'll keep tracing code for now. > >[SQL_ATTR_UNIXODBC_ENVATTR=ORACLE_HOME=/ieqqammk1/oracle/product/10.2.0] ret >= -1 > > >[ODBC][19126][SQLConnect.c][3586] > Entry: > Connection = 27978 > Server Name = [IEQQ2][length = 5 (SQL_NTS)] > User Name = [tca_read_user][length = 13 (SQL_NTS)] > Authentication = [*************][length = 13 >(SQL_NTS)] > UNICODE Using encoding ASCII 'ISO8859-1' and UNICODE >'UCS-2BE' > > ENV ATTR >[SQL_ATTR_UNIXODBC_ENVATTR=ORACLE_HOME=/ieqqammk1/oracle/product/10.2.0] ret >= -1 > >[ODBC][19126][SQLConnect.c][1315]Error: IM004 > > > Its not the problem here. The error you are getting either means the driver lib is failing when the driver manager calls SQLAllocEnv or SQLAllocHandle for a environmant handle. -- Nick Gorham Easysoft Limited http://www.easysoft.com, http://www.unixODBC.org _______________________________________________ unixODBC-support mailing list unixODBC-support@... http://mail.easysoft.com/mailman/listinfo/unixodbc-support |
|
|
Re: Repost - Install questions> the last line of the odbc.ini is something I am playing around with, I think the answer is related to that, > something needs to be defined that isn't, but that's just based on what I've found on this forum and the > net searches.
> DMEnvAttr = SQL_ATTR_UNIXODBC_ENVATTR={ORACLE_HOME=/ieqqammk1/oracle/product/10.2.0} Below is from the trace log, I notice the ret = -1, which makes me think I have a bad syntax in the odbc.ini? Well at least it makes me think it's not working but I don't know exactly where in the code that's getting written to the log. I'll keep tracing code for now. [SQL_ATTR_UNIXODBC_ENVATTR=ORACLE_HOME=/ieqqammk1/oracle/product/10.2.0] ret = -1 [ODBC][19126][SQLConnect.c][3586] Entry: Connection = 27978 Server Name = [IEQQ2][length = 5 (SQL_NTS)] User Name = [tca_read_user][length = 13 (SQL_NTS)] Authentication = [*************][length = 13 (SQL_NTS)] UNICODE Using encoding ASCII 'ISO8859-1' and UNICODE 'UCS-2BE' ENV ATTR [SQL_ATTR_UNIXODBC_ENVATTR=ORACLE_HOME=/ieqqammk1/oracle/product/10.2.0] ret = -1 [ODBC][19126][SQLConnect.c][1315]Error: IM004 |
|
|
Re: Repost - Install questions> I just checked, thats a typo in the driver manager code, ignore the -1.
> Its not the problem here. > The error you are getting either means the driver lib is failing when > the driver manager calls SQLAllocEnv or SQLAllocHandle for a environmant > handle. Thanks for that info (as well as all the help you are providing), I would have wasted my day trying to figure out what I was doing wrong with loading the env var :) Not being a unix person, I have a hunch that because none of the env vars I'm setting are in a "global" file like .cshrc or .login, etc. that kicks in for each shell, that my problem requires more than just ORACLE_HOME. That's what I'm going to try next, since I know the envirnoment setting via the odbc.ini is ok. |
|
|
|
|
|
|
|
|
RE: RE: Repost - Install questions> > Basic vs Basic lite.
> In my case installing basic instead of basiclite solved the problem but > first of all I would install the latest instantclient version 10.2.0.3 > > Anyone know if there is a way to determine which was installed > The basic package contains > client/lib/libociei.so > and the basiclite package contains > client/lib/libociicus.so > instead. Going by this, it's the basic package installed. My attempt at adding all env vars in the odbc.ini didn't work either. Still have some ideas, open to hear any others. |
|
|
Re: Repost - Install questions> The error you are getting either means the driver lib is failing when
> the driver manager calls SQLAllocEnv or SQLAllocHandle for a environmant > handle. I added some additional code to the SQLConnect.c and determined the offending call is this one, it returns -1 and cause the IM004 to be thrown. Please forgive me in advance for my cluelessness, and now my questions. is the SQLALLOCHANDLE referenced below expected to be in the odbc driver for the client I'm trying to connect to? if it is, I ran dltest as follows: bash-3.00$ dltest /ieqqammk1/oracle/product/10.2.0/lib32/libsqora.so.10.1 SQLALLOCHANDLE SUCCESS: Loaded /ieqqammk1/oracle/product/10.2.0/lib32/libsqora.so.10.1 ERROR: ld.so.1: dltest: fatal: SQLALLOCHANDLE: can't find symbol Could not find SQLALLOCHANDLE and bash-3.00$ dltest /ieqqammk1/oracle/product/10.2.0/lib32/libsqora.so.10.1 SQLAllocHandle SUCCESS: Loaded /ieqqammk1/oracle/product/10.2.0/lib32/libsqora.so.10.1 SUCCESS: Found SQLAllocHandle Is there an issue relating to the case of SQLAllocHandle vs SQLALLOCHANDLE? If this is a dll issue, what would be the path to trying to resolve it? Oracle client forum? Open to ideas... Thanks in advance. ret = SQLALLOCHANDLE( connection, SQL_HANDLE_ENV, SQL_NULL_HENV, &connection -> driver_env, connection ); |
|
|
Re: Repost - Install questionsHAS wrote:
>>The error you are getting either means the driver lib is failing when >>the driver manager calls SQLAllocEnv or SQLAllocHandle for a environmant >>handle. >> >> > >I added some additional code to the SQLConnect.c and determined the >offending call is this one, it returns -1 and cause the IM004 to be thrown. >Please forgive me in advance for my cluelessness, and now my questions. > >is the SQLALLOCHANDLE referenced below expected to be in the odbc driver for >the client I'm trying to connect to? > >if it is, I ran dltest as follows: > >bash-3.00$ dltest /ieqqammk1/oracle/product/10.2.0/lib32/libsqora.so.10.1 >SQLALLOCHANDLE >SUCCESS: Loaded /ieqqammk1/oracle/product/10.2.0/lib32/libsqora.so.10.1 >ERROR: ld.so.1: dltest: fatal: SQLALLOCHANDLE: can't find symbol > Could not find SQLALLOCHANDLE > >and > >bash-3.00$ dltest /ieqqammk1/oracle/product/10.2.0/lib32/libsqora.so.10.1 >SQLAllocHandle >SUCCESS: Loaded /ieqqammk1/oracle/product/10.2.0/lib32/libsqora.so.10.1 >SUCCESS: Found SQLAllocHandle > >Is there an issue relating to the case of SQLAllocHandle vs SQLALLOCHANDLE? > >If this is a dll issue, what would be the path to trying to resolve it? >Oracle client forum? > >Open to ideas... Thanks in advance. > >ret = SQLALLOCHANDLE( connection, > SQL_HANDLE_ENV, > SQL_NULL_HENV, > &connection -> driver_env, > connection ); > > > that calls the entry point in the driver that has been dynamically loaded, it calls SQLAllocHandle. If it didn't have the entry point, it woudln't have tried to call it. So its callint the driver, and the driver is returning -1. Maybe it can't load the oracle libs. Maybe try using strace and see if that gives any clues. Other than that, try the Oracle folk, or Easysoft do a nice driver :-). -- Nick _______________________________________________ unixODBC-support mailing list unixODBC-support@... http://mail.easysoft.com/mailman/listinfo/unixodbc-support |
|
|
Re: Repost - Install questions |