Oracle Database 19c - Find the non-default location of PFile - oracle

I have an Oracle Database 19C running in a docker container. I cannot find the Pfile/SPFile in the default location of $ORACLE_HOME/dbs. But the database is up and running.
It could have been started with a non-default location of Pfile. The output of parameter SPFILE is blank too. How can I find the location of non-default Pfile? Any ideas?
Thanks,
Madhuri

I found the location of PFile in Alert Log.

Related

Can't oracle19c use the ORACLE_SID environment variable to connect to the database?

I have a Pro*C file upgraded from Oracle10 to 19c (Oracle10 in Solaris10, 19c in Redhat8)
In Oracle10 I use "proc USERID=aaa/bbb SQLCHECK=SEMANTICS ..." to compile the .pc file, the proc will connect to the ORACLE_SID database, but when compiling the file in 19c, it reports "PCC-02104Unable to connect to Oracle" error, meaning The username or password is invalid. I changed the compile command to "proc USERID=aaa/bbb#ccc SQLCHECK=SEMANTICS ... " and tried again, and it was successful, because I used #ccc to specify the database name.
Does 19c not support using ORACLE_SID to connect to the database? If yes, is there any documentation about it? this problem is just my test, no official instructions.
Thanks !
The ORACLE_SID for a multientant architecture database will always take you to the CONTAINER instance.
Your data, your code will be in a pluggable database.
Oracle has advised for quite some time now that you always use the SERVICE to create your connections vs the SID - and that's for any type of database, not just multitenanted ones.
If you see this Doc, there's only references to the Service name, nothing on SID.

Oracle Database XE - setting SID during installation

Is there any possibility of changing the default SID of Oracle Database during installation from RPM? I want to do this without X-Window-System. I want to do this during configuration - when i invoke this command:
/etc/init.d/oracle-xe-18c configure SidParameter
i want to give SID as a parameter.

TNSNames.ora error

Set OraDatabase1 = OraSession.DbOpenDatabase(strLocation, "test/test_test", 0&)
I am trying to connect my oracle from my VB applicaton.
I have Oracle 9i and Oracle 11g installed in my computer.
I have problem in connecting in. I am getting tnsnams.ora error.
You need the "test/test_test" entry in your tnsnames.ora file. This file is typically found in the oracle install DIR under (ORACLE_VERSION)/NETWORK/ADMIN/ folder

Export from Oracle 10g database with 11g client - detailed

Database Version : 10g Enterprise Edition Release 10.2.0.4.0
Client Version: 11g Enterprise Edition Release 11.2.0.1.0 (windows 7 64bit)
When I try to export (exp) a table from database:
exp usr/pass#remote_db file=f.dmp tables=table
I get the following error:
EXP-00008: ORACLE error 904 encountered
ORA-00904: "POLTYP": invalid
identifier EXP-00000: Export terminated unsuccessfully
I know this question was answered earlier (the answer is "install 10g client to use its exp utility"), but I still didn't understand correctly:
Is Oracle 10g client 10.2.0.4 is ok for this? Do I need to setup TNS etc?
If I use the previous command to export the DB will the system automatically use the Ora10g client exp tool?
1) Yes, the 10.2.0.4 client would be OK. Yes, assuming that you use a tnsnames.ora file to connect to the database, you would need to configure a tnsnames.ora file in the Oracle Home for the newly installed 10.2.0.4 client or set the TNS_ADMIN environment variable to point at a single tnsnames.ora file for all Oracle Homes on the server. If you don't use a tnsnames.ora file to connect to the database, you would not need to configure one.
2) The command you posted will use the operating system's name resolution logic to determine which executable to invoke. Generally, that will be the executable in whichever Oracle Home is first in the operating system's PATH environment variable. Of course, you could specify an explicit path or change the current directory to the %Oracle Home%\bin of the 10.2.0.4 Oracle Home if that home was not first in the path.

Oracle tns listener error

I've just installed Oracle 10g When I try to connect to oracle db i get an error:
could not start OracleOraHome92TNSListener
when i got to services and try to start it, it says that the file doesnt exist. the service file is C:\oracle\ora92\BIN\TNSLSNR (TNSLSNR is a file not a directory)
C:\oracle\ora92\BIN\TNSLSNR doesn't exist on my machine at all. do you know how to get it?
Could not start the Oracle Ora92 Listener service on Local Computer.Error 2: The system cannot find the file specified
Here's a couple of issues I see. You say you installed 10g but the error is a 9.2 error. It could be that your computer already had an Oracle 9i on it that was mis-configured or uninstalled and that is leading to the error.
You need to check your disk and find the ORACLE_HOME (directory) where Oracle 10g was installed. Once you find that you can adjust the PATH and ORACLE_HOME and TNS_ADMIN environment variables to point to the right place. This should allow you to start the database and the listener.
If you need to install the Oracle Client for 10g then this information below will be helpful as well.
The Oracle client can be installed separately. Just go to this address, download the client and unzip it into a subdirectory and then run the Oracle Universal Installer by running setup.exe from the directory.
Oracle Downloads Page

Resources