简体   繁体   中英

More that one logical-name for database in parameter file (.pf)?

I have a parameter file (.pf) with different databases to connect. The databases have multiple aliases therefore I want to set the logical names of each database.

-db physical_database_name
-ld [Logical name/alias]
- [...]

When I set more -ld parameters than one, it takes only the last one. How is it possible to set more than one alias in the Parameter file (.pf)?

Additional aliases can only be set through code.

What you could do is to use the -param Startup Parameter.

-param dbname1=alias1,alias2|dbname2=alias3,alias4

And process this string based SESSION:PARAMETER in your startup procedure.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM