Password file ,SPfile
Hi
I want to take back up of password file and spfile/pfile how?
I am working in oracle 10g under solaris environment
thanks
raj
Both the parameter (either pfile or spfile) and the password file should not be a big deal when backing them up, just copy them to a backup location.
If you are using recovery manager make sure the controflile backup parameter is configured so you can ensure the spfile can be backed up by rman. If you are currently using pfile, you must manually backup this.
In case you loose the password file, this can easily be rebuilt by means of the orapwd utlity. And in case you loose the pfile this can be rebuilt after the information of the non-default instance parameters, listed at your alertSID.log file.
Another way to backup the spfile is by means of the sql command:
CREATE PFILE [pfileSpec] FROM SPFILE [spfileSpec];
This will create a text parameter file you can save anywhere you are allowed to.
~ Madrid
Similar Messages
-
Configuring password file in oracle 10g
Hi
Can anyone here guide me to the steps to be followed in configuring password file.
I am learning cloning using RMAN. For that purpose I need to configure password file at first.
I created the password file using orapwd utility.
and then made the required changes in tnsnames.ora and listener.ora files. Reloaded listener.
Set SQLNET.AUTHENTICATION_SERVICES = (NONE) in the sqlnet.ora file
Made the changes required in the initialization parameter file for the duplicate database instance.
Next, export ORACLE_SID= <DUPLICATE DATABASE NAME>
CREATE SPFILE FROM PFILE
STARTUP FORCE NOMOUNT;
rman TARGET sys/password@target-tnsname AUXILIARY sys/password@duplicate-tnsname
At this stage, I get the below error.
RMAN-00554 initialization of internal recovery manager package failed
RMAN- 04006 error from auxiliary database: ORA- 01031 : Insufficient privilegesuserark160 wrote:
rman TARGET sys/password@target-tnsname AUXILIARY sys/password@duplicate-tnsname
At this stage, I get the below error.
RMAN-00554 initialization of internal recovery manager package failed
RMAN- 04006 error from auxiliary database: ORA- 01031 : Insufficient privileges
Are the Auxiliary and Target databases on the same machine?
Can you also check the parameter Local_Listener for Auxiliary Database?
Regards,
Z.K. -
Ora-01990 error in opening the password file
Hi,
I created a password file by using orapwd utility. Then later on I modified the remote_login_passwordfile in the spfile by giving the command:
sql> alter system set remote_login_passwordfile=exclusive
scope=spfile.
Then it is altered. Later on I shutdown the database and When I was trying to connect to the databse again, I am getting the following errors.
ORA-01990 error openeing the passowrd file.
ORA-27037 unable to obtain file status
linux error:2 no such file or directory.
Thanks in advance.Hi,
I tried that also.It is giving ora-32001 write to spfile requested but no spfile specified at startup.
First Manually I deleted the password file and I set the remote_login_passwordfile=none in the parameter file and again I started the instance just by giving
sql>startup open pfile='OraHome1/dbs/initRADHI.ora'
then I tried to modify the the Remote_Login_PASSWORDFILE thru alter system set command.then it is giving the above error. then I again shutdown the DB and again I started without specifying the parameter file or spfile just saying sql>startup. Then also it is not taking the SPFILE to startup. why is so? Then also same error I am getting?
ora-32001 write to spfile requested but no spfile at startup. can anyone of you help me.
Thanks,
Have a nice day. -
Password file issue in Oracle 10g
Hi,
While trying connecting from SQL prompt using command
SQL> CONNECT SYS/PASSWORD@CONNECT_STRING AS SYSDBA
It gives error
ORA-01031 insufficient privilege
If SQL> CONNECT SYS/PASSWORD AS SYSDBA
It works successfully??
After connecting without using connect_string.
Only one DB is running on this machine.
Then SELECT * FROM V$PWFILE_USERS;
0 ROWS RETURNED
Recreated the pwd file same issue persists. What may be the reason?
If SQL> GRANT SYSDBA TO SYS;
ERROR ORA-01994: GRANT FAILED: PASSWORD FILE MISSING OR DISABLED
Password file created using command
orapwd file=/u01/app/oracle/product/10.2.0db_1/dbs/orapwPRIMDB password=pwd entries=5
Please help me.
Thanks in advance.
Edited by: Bharat Kaushik on May 31, 2009 4:20 PMThe first command is a 'remote connection'. To be able to connect as sysdba remotely, spfile remote_login_passwordfile should be set to exclusive.
When there is no password file or the parameter is incorrect this results in ora-1031.
The second command uses O/S authentication, and doesn't use the password file at all.
O/S authentication is set up in sqlnet.ora.
SYS has always SYSDBA, by design. Granting SYSDBA to SYS is redundant.
Obviously in this directory name
/u01/app/oracle/product/10.2.0db_1/dbs/
there is a / missing and it should have been
/u01/app/oracle/product/10.2.0/db_1/dbs/
So you still have no valid passwordfile.
You could have and should have easily spotted this yourself.
Sybrand Bakker
Senior Oracle DBA
Experts: those who did read the documentation. -
Hello,
I need to enable remote login for sysdba / sysoper thus I've created a password file.
> orapwd file=orapwd.pwd password=super_secret entries=10The file orapwd.pwd was created successful in $ORACLE_HOME/dbs.Now in SQL*Plus
SQL> SELECT VALUE FROM v$parameter WHERE NAME = 'remote_login_passwordfile';
VALUE
EXCLUSIVE
SQL> GRANT sysdba TO sysuser;
ERROR: at line 1:
ORA-01994: GRANT failed: password file missing or disabledThis happens after a database restart too.I've even tried to switch back to a pfile instead of the spfile use to set the parameter to NONE and EXCLUSIVE back and forth.
Any idea what else could be wrong?
Thanks in advance
FrankYes, that was it, thanks
The documentation library says:
------ snip ------
The following command creates a password file named acct.pwd that allows up to 30 privileged users with different passwords. In this example, the file is initially created with the password secret for users connecting as SYS.
orapwd FILE=acct.pwd PASSWORD=secret ENTRIES=30
------ snap ------
... and forgets to mention that the filename MUST BE orapw<SID> without any filename extension.
Thanks again
Frank -
Password file users issue... RAC help please...
Hi guys,
i have a two node rac database installed on my laptop.. 11gr2.
in rac a database will be accessed by more than once instance correct....
here i have two instance myinst1 and myinst2.
here if we add a user in any one of the instances (say myinst1).. using that user account. the user can connect to either the myinst1 and myinst2.... correct....
say now i grant the user i just created with the SYSDBA and SYSOPER privileges.. (user created on myinst1).
now i can connect to both of the instance using the following syntax as a sysdba..
connect user/password@servicename as sysdba
now here comes the best part..
oracle states that once the user is given either the sysdba or sysoper it will be updated in the password file...
now as i have created the user in the myinst1 instance and granted the privileges there... the password file at the node myinst1 shows the details of the user in the V$PWFILE_USERS views. where as the other instance myinst2 V$PWFILE_USERS does nt have the user...
can any one tell me why is this happening... do i have to explictly grant the SYSDBA privilege on all the instances once if i want to grant a user with the sysdba or sysoper privilege...Surely there is more than this? I have always believed that the only valid configuration of a Password File in RAC is for a single file to be shared by all instances - by putting it on a shared file system or multipathed raw volume (like the database files), with a Unix symbolic link or init.ora SPFILE reference on each node. I have seen documentation that people have stored a database password file in ASM (SPFILE=+XYZ...) and even on NFS and CIFS.
SYSDBA and SYSOPER access uses the password file of course and it is effectively part of the database, and to me it seems reasonable to expect that an instance will only update the one Password File it knows aboutwhen SYSDBA/OPER access is added, removed or changed; so the consequences of having multiple copies for a single database may be expected to be bad. It was noted here that granting SYSDBA privilege on one node leads to inconsistency in that account's privileges across nodes. Maybe worse is that removing SYSDBA access from one node could leave SYSDBA access to other nodes/instances in place, in clusters where there are multiple local password files... this can be viewed as a very serious security defect, which one of our DBAs has demonstrated.
Now I have learned that Oracle's documentation does not actually give much advice about the configuration of Password Files for RAC; that while some people have done what I expected for years, some product guides suggest on the contrary that local copies should be created on each node; and even that Oracle may not support a single Password File on a shared device. Having Googled the web and scanned this forum quickly, I haven't found a resolution. I am stunned.
I am sure that, of all people, the RAC SIG will be able to advise on this authoritatively, so please do so. If it turns out that Oracle does not recommend or support the use of a single shared file (*),then I suggest there is a significant issue.
(*) Just to be clear, I am not refering to a SHARED password file, but to an EXCLUSIVE one that is on a shared storage volume accessed by every instance of the same RAC database. How Oracle behaves with a SHARED parameter setting may be another issue. -
How to change the default password file's name and path when the database created?
how to change the default password file's name and path when the database created?
nullUsage: orapwd file=<fname> password=<password> entries=<users>
where
file - name of password file (mand),
password - password for SYS and INTERNAL (mand),
entries - maximum number of distinct DBA and OPERs (opt),
There are no spaces around the equal-to (=) character. -
How to change default location of password file ?
Hi all,
Can i change the location of my password file from default to any other user defined location ?
If yes then how ?
Thanx in advance.
DeepDad you moved here?
Can i change the location of my password file ? -
How do i find the location of Oracle password file in the HDD
we giv the location of the password file while we use the orapwd command to create one.
later if we forget the location of the password file (incase it is not at the default location) then is there a way to find it or do we just create a new password file?
secondly, for oracle to use the password file we giv the remote_login_passwordfile='EXCLUSIVE' in the parameter file. wat tells oracle the location of the exact password file??
Thanks
Arvind
Edited by: iinfi on Sep 29, 2008 12:15 AMThe default location are OS dependant.
On Unix/Linus it is under $ORACLE_HOME/dbs
On Windows, it is under %ORACLE_HOME%/database
To change the default location, nothing inside database, but :
On Unix/Linux, you have to create a symbolic link for that file to the target location
On Windows, you have to change env variable (regedit) ORA_PWFILE and ORA_SID_PWFILE
So, you have to check this setting for the real password file location.
Nicolas. -
Hello,
1) I realized that when MBAM bitlocker encryption start both Recovery key and TPM owner password file are send to MBAM server. If we change the computername of the notebook, we can find out Recovery key from MBAM server with the KeyID as we can read it from
computer screen, but we can not find out TPM owner password file with the existing new computername information from MBAM server, so we have to know old names of all computers but it is impossible. So we have to do decryption and clearing TPM than we
can again encrypted it with its new name. is it right?
2) We will going to deploy mbam encryption to our notebooks. But sometimes when a person quit the job his notebook can given to another person or new employee and based to our procedure when a notebook will given to another user it should installed
OS again with PXE boot. I would to know will it be enough to installing with this method again with a diffrent computer name or should I firstly clear its TPM than install OS with PXE to keep TPM owner password file missing as item 1?
I hope i can explain what i mean :)
Regards,
SibelMI would suggest you to first decrypt the laptop and then follow the process:-
- Clear the TPM
- Encrypt the type.
- Check for the encryption behavior.
Cause I have found on some model that if the OS drive is encrypted, PXE boot fail on that machine even though I also did a direct PXE on an encrypted machine with clearing the TPM.
TPM ownership password is a hash file that gets generated with a set of algorithm. SO each time when you PXE boot, by clearing the TPM, the TPM hash password for the TPM will change. This has been done for security measures.
Gaurav Ranjan -
good day !
i am confused and still cannot digest the need to use a password file!
can anyone provide me with links or any explaination on why we need a password file!
i need the password file so that i can setup dataguard!
thnxYou can Oralce administration guide,
Database Administrator Authentication
http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dba.htm#i1006534 -
Hi, I'm traying to start up a database in sqlplus on SuSE 8.2 and Ora9.2, I have the next error:
SQL> conn / as sysdba
Connected to an idle instance.
SQL> startup pfile=/opt/ora9/admin/pavilion/pfile/initmydb.ora
ORACLE instance started.
Total System Global Area 101781824 bytes
Fixed Size 450880 bytes
Variable Size 83886080 bytes
Database Buffers 16777216 bytes
Redo Buffers 667648 bytes
ORA-01990: error opening password file '/opt/ora9/product/9.2/dbs/orapw'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
My password file is /opt/ora9/product/9.2/dbs/orapwmydb
How can I use my orapwmydb file?Hi Marco,
as far as I know, you have to use the REMOTE_LOGIN_PASSWORDFILE = SHARED option in your init...ora file.
In this case you have one password file for one or more databases. It can only have the entries for SYS and INTERAL.
I'm sorry to cannot answer your question of having different password files for different databases %-)
Klaus -
Dear All,
I have changed the PWD file on oracle 9.2.04 under linux redhat advance server 2.1. but when i start to open database by issuing dbstart, i get
ORA-01990: Error opening password file '/home/oracle/OraHome1/dbs/orapw'
ORA-27037: unable to obtain file status
Linux Error: 2 : no such file or directory
additional information: 3
How to solve the problems?
thanks and regard
ERHai all...
I did it all..
but still I got
ORA-01990: Error opening password file '/home/oracle/OraHome1/dbs/orapw'
ORA-27037: unable to obtain file status
Linux Error: 2 : no such file or directory
additional information: 3
Help me...
Thanks
regard
ER -
How to create a password file for 9i database
I just created a database 9.2.0.5 based on another database. I copied the password file to the new database. I got an error. How can I recreate one?
Thanks a lot!
SQL> startup;
ORACLE instance started.
Total System Global Area 337204540 bytes
Fixed Size 455996 bytes
Variable Size 268435456 bytes
Database Buffers 67108864 bytes
Redo Buffers 1204224 bytes
ORA-01991: invalid password file '/local/ORACLE/OraHome1/dbs/orapwilnktest'
SQL>Do you think the password is the sys password?Time to go through the doc :
http://download.oracle.com/docs/cd/B10501_01/server.920/a96521/dba.htm#1227
Nicolas. -
How to create a password file for executing psadmin command to deploy portl
how to create a password file for executing psadmin command to deploy portlet
What you have done is perfectly right. The password file doesn't have anything else apart from the password
for example in your case
$echo password > /tmp/password.txt
However I remember that in windows install, the Application server used to wait for a user's input when a deploy was to be done for the first time. So Can you read the Release notes or the Readme file which has come with windows.
The solution was,
manually use asadmin command of application server to deploy some war (any webapp will do), at this time, a question will be prompted to accept a certificate. once this is done, deploy portlet should work fine!!!
HTH
Maybe you are looking for
-
Uninstalling Secondary Site Server through SW Delivery fails
We have migrated to SCCM2012 and now need to uninstall our SCCM 2007 Secondary Siteserver. Since we have 300 Secondary Site Server in the Hirarchy, the uninstall of the software must be distributed. We have to create a task sequence, in which the fol
-
hi i am trying to run small Piece of Code my code is private static String algorithm = "DES"; private static Key key = null; private static Cipher cipher = null; private static void setUp() throws Exception { key = KeyGenerator.
-
Dose the "convert higher bit rate songs to" option effect my music on the computer?
dose the option change the quality of the track on the computer library also or just on the device?
-
i have this code to read a text file and put it's contents in a string and then use the string tokenizer to separate it public static void readTF() String s = TextIO.readTextFile(); StringTokenizer sToken = new StringTokenizer(s); javax.swing.JOption
-
Easily Increase HD Free Space on Laptop
Easily Increase HD Free Space on Laptop I recently acquired a G3 400MHz FW Pismo laptop. It has the original 10GB HD installed. The laptop had Tiger installed along with other numerous applications, leaving only 1.05 GB free. I was thinking about ins