Hi Folks,

Since oracle 12c, SAP can use “oracle” user instead of “orasid” for database. Now there is a hot question, what if I have multiple databases with different <DBSID> in the same host? How to let one “oracle” user to admin all the databases in the same host?

In the past, we can easily achieve this, because every different databases with different <DBSID> have their unique admin user “orasid”. Also all the environment variables of the database are existing in login scripts. As soon as “orasid” log on the OS, the environment variables will automatically set from home profile. This is an permanent change.

However since “oracle” comes to use, we cannot use login script to set environment variables like “orasid” (we have multiple databases installed).

But we need to run “. oraenv” as mentioned in note

“1915317 – Migrating Software Owner to ‘oracle'” where we can set all the oracle related environment variables for <DBSID>. Afterwards we can have unique environment variables for the < DBSID> we are interested in. By using this way, we can switch to different database without problem for “oracle” user. But!! As per SAP note 1915323 , we still recommend to use ora<sid> user to admin the database as administrator user, oracle user can just be as software user/owner.

So the differences on environment variable settings:

1. “orasid”: uses login profile to set, different “orasid” users have different login profile in the its own home directory, this is a permanent change
2. “oracle”: we have to manually run “. oraenv” where asks to input <DBSID> to adjust environment variables, this is a temporary change.

or: recommend to use ora<sid> as administrator

By the way we need to use “source” command before oraenv, like “. oraenv”.

Best regards,
James

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply