Docsity
Docsity

Prepara tus exámenes
Prepara tus exámenes

Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity


Consigue puntos base para descargar
Consigue puntos base para descargar

Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium


Orientación Universidad
Orientación Universidad

UTILIDADES PARA ADMINISTRAR BASES DE DATOS ORACLE, Ejercicios de Programación de Bases de Datos

SE ESPECIFICA COMO CAMBIAR EL NOMBRE DE UNA BASE DE DATOS Y COMO CREAR UN PASSWORD FILE

Tipo: Ejercicios

2020/2021

Subido el 14/01/2021

joseperalta771003
joseperalta771003 🇻🇪

1 documento

1 / 2

Toggle sidebar

Esta página no es visible en la vista previa

¡No te pierdas las partes importantes!

bg1
264.-How To Password file Oracle / advanced orapwd utility
264.-How To Password file Oracle / advanced orapwd utility
1. Create the password file. This is done by executing the following command
$ orapwd file=filename password=password entries=max_users
2. Edit the init.ora parameter remote_login_passwordfile. This parameter must be set to either
SHARED or EXCLUSIVE. When set to SHARED, the password file can be used by multiple databases,
yet only the SYS user is recognized. When set to EXCLUSIVE, the file can be used by only one
database, yet multiple users can exist in the file. The parameter setting can be confirmed by:
SQL> show parameter password
NAME TYPE VALUE
----------------------------- ----------- ----------
remote_login_passwordfile string EXCLUSIVE
3. Grant SYSDBA or SYSOPER to users. When SYSDBA or SYSOPER privileges are granted to a user,
that user's name and privilege information are added to the password file.
SQL> grant sysdba to scott ; Grant succeeded.
4. Confirm that the user is listed in the password file.
SQL> select * from v$pwfile_users;
USERNAME SYSDBA SYSOPER
------------------------------ ------ -------
SYS TRUE TRUE
SCOTT TRUE FALSE
Now the user SCOTT can connect as SYSDBA. Administrative users can be connected and
authenticated to a local or remote database by using the SQL*Plus connect command. They must
connect using their username and password, and with the AS SYSDBA or AS SYSOPER clause:
SQL> connect scott/tiger as sysdba;
Connected.
The password file creation utility evaluates the new parameter ignorecase to allow case-sensitive
passwords or restrict passwords to case insensitivity. In order to create a password file with
orapwd, which allows case-sensitive passwords, set ignorecase to N.
[oracle@rhas4 ~]$ orapwd help=y
Usage: orapwd file=<fname> password=<password> entries=<users> force=<y/n>
ignorecase=<y/n> nosysdba=<y/n>
pf2

Vista previa parcial del texto

¡Descarga UTILIDADES PARA ADMINISTRAR BASES DE DATOS ORACLE y más Ejercicios en PDF de Programación de Bases de Datos solo en Docsity!

264.-How To Password file Oracle / advanced orapwd utility

264.-How To Password file Oracle / advanced orapwd utility

  1. Create the password file. This is done by executing the following command $ orapwd file=filename password=password entries=max_users
  2. Edit the init.ora parameter remote_login_passwordfile. This parameter must be set to either SHARED or EXCLUSIVE. When set to SHARED, the password file can be used by multiple databases, yet only the SYS user is recognized. When set to EXCLUSIVE, the file can be used by only one database, yet multiple users can exist in the file. The parameter setting can be confirmed by: SQL> show parameter password NAME TYPE VALUE

remote_login_passwordfile string EXCLUSIVE

  1. Grant SYSDBA or SYSOPER to users. When SYSDBA or SYSOPER privileges are granted to a user, that user's name and privilege information are added to the password file. SQL> grant sysdba to scott ; Grant succeeded.
  2. Confirm that the user is listed in the password file. SQL> select * from v$pwfile_users; USERNAME SYSDBA SYSOPER

SYS TRUE TRUE SCOTT TRUE FALSE Now the user SCOTT can connect as SYSDBA. Administrative users can be connected and authenticated to a local or remote database by using the SQL*Plus connect command. They must connect using their username and password, and with the AS SYSDBA or AS SYSOPER clause: SQL> connect scott/tiger as sysdba; Connected. The password file creation utility evaluates the new parameter ignorecase to allow case-sensitive passwords or restrict passwords to case insensitivity. In order to create a password file with orapwd, which allows case-sensitive passwords, set ignorecase to N. [oracle@rhas4 ~]$ orapwd help=y Usage: orapwd file= password= entries= force=<y/n> ignorecase=<y/n> nosysdba=<y/n>

Where: file - name of password file (required), password - password for SYS (optional), entries - maximum number of distinct DBA (required), force - whether to overwrite existing file (optional), ignorecase - passwords are case-insensitive (optional), nosysdba - whether to shut out the SYSDBA logon (optional Database Vault only). create spfile='+DATA/PRD/spfileprd.ora' from pfile; EJEMPLO: orapwd file=orapwEBSQA2 password=XVxeia orapwd file=orapwRDWPRD password=MxrOl9G1pt