BookmarkSubscribeRSS Feed
mpg
Fluorite | Level 6 mpg
Fluorite | Level 6

Hello,

 

Is it possible for Enterprise Guide to use a non-stored metadata server login credential as a database credential when running a SQL pass-through statement?

 

Context:

Our Enterprise Guide users connect to a metadata server with individual credentials, and the same individual credentials are used to connect to an Oracle database. We don't allow users to store their credentials in their profile or in their metadata user profile, but we encourage them to set the option in EG to persist their credential for the session. I'd like to avoid users entering and storing their credentials in program code.

 

I've tried the following code unsuccessfully:

PROC SQL;

	CONNECT TO oracle AS alias 
	(
		authdomain="DefaultAuth"
		path=dbPath
		preserve_comments
	); 
 	SELECT * FROM connection to alias
	(
		SELECT count(*) FROM schema.table
	);
	DISCONNECT FROM alias;

QUIT;

After the CONNECT TO statement, I get the following errors:

 

NOTE:  Credential could not be obtained from SAS metadata server.
WARNING: No login information was available for authdomain DefaultAuth.
ERROR: ORACLE connection error: ORA-12162: TNS:net service name is incorrectly specified.

Thanks in advance for any advice.

2 REPLIES 2
SASKiwi
PROC Star

Yes it is possible. I'm assuming you are using the IWA option (Integrated Windows Authentication) in your EG connection profile. Is that correct? If so then you want that to delegate your IWA credentials to your Oracle database connections.

 

What OS does your SAS servers run on? If you don't credential delegation already set up then that needs to be configured in your SAS application server Kerboros settings. This is a task for a SAS or IT administrator.

 

I'm not so familiar with how this works with Oracle but I know how it works with SQL Server. Hopefully someone with more Oracle experience can add to this post.  

mpg
Fluorite | Level 6 mpg
Fluorite | Level 6

Our SAS servers are on Linux and use PAM and LDAP for authentication.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 2134 views
  • 0 likes
  • 2 in conversation