Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Using SQLLDR 12c with full connect string - LRM-00116

garywickeJul 28 2017 — edited Jul 31 2017

Good Day

Environment:

Oracle 12.1.0.2 EE on Exadata Linux

Client environment is Windows 7

We have some security software that we are required to invoke that passes back the needed user, password and connect string to connect to the desired database.

This process works very well when invoking SQL*Plus but doesn't seem to work invoking SQLLDR.

We are using Windows batch scripts.  :-(

My command inside the Windows command file is:

sqlldr userid^=%user%/%pass%@%dbsrvc% silent^=ALL control^=%DATA%%fileNm%.ctl log^=%DATA%%fileNm%.log data^=%DATA%%fullFileName%

All the variables are defined correctly.

The translated command looks like this with 'user' and 'pass' redacted:

sqlldr userid=<user>/<pass>@"(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 'serverXYZ')(PORT = 1525)))(CONNECT_DATA = (SERVICE_NAME = DADR_FEPCSSD_SRVC)(SERVER = DEDICATED)))" silent=ALL control=H:\batch\<input_file>.ctl log=H:\batch\<input_file>.log data=H:\batch\<input_file>.dat

I've redacted some of the sensitive stuff but the connect string, "(DESCRIPTION = ....." is intact other than the server name and is what we're receiving back from the security software.  It is what it is and we can't change it at the moment, i.e. no TNS aliases.

When this command is invoked I get:

LRM-00116: syntax error at '<user>/<pass>@' following '='

Again the user and pass are redacted.

I've tried different forms of escaping some of the characters but that should be taken care of already in the batch command file.

I've seen many other threads in other discussion web sites about this issue but have yet to see a solution.

If it works with SQL*Plus, why not with SQLLDR?

Any suggestions are most welcome!!

Thanks very much!!

-gary

This post has been answered by unknown-3431574 on Jul 30 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2017
Added on Jul 28 2017
6 comments
9,758 views