Posts

Showing posts from December, 2024

Change Password in an Oracle Database

 Once connected, ALTER USER command, specifying the new password. ALTER USER myuser IDENTIFIED BY MyNewPassword; To use special characters, remember to enclose the password in double quotes. ALTER USER myuser IDENTIFIED BY "MyNewPassword#"; SQL*Plus and SQLcl Use the PASSWORD command from the SQL*Plus and SQLcl utilities. It will be prompted for your current password and the new password. SQL> password Changing password for MYUSER Old password: ******** New password: ******** Retype new password: ******** Password changed SQL> SQL Developer From SQL Developer Right-click on the connection. Select the "Reset Password..." option from the popup menu. In the subsequent dialog, enter the current password and the new password with confirmation. Click the OK button. TOAD For TOAD do the following. select "Session > Change Password". In the subsequent dialog, enter the current password and the new password with verification. Click the OK button.

ALTER PACKAGE COMPILE Statement

  This statement explicitly recompiles the specification and body of the  hr.emp_mgmt  package. ALTER PACKAGE emp_mgmt COMPILE PACKAGE; If the database encounters no compilation errors while recompiling the  emp_mgmt  specification and body, then  emp_mgmt  becomes valid. The user  hr  can subsequently invoke or reference all package objects declared in the specification of  emp_mgmt  without runtime recompilation. If recompiling  emp_mgmt  results in compilation errors, then the database returns an error and  emp_mgmt  remains invalid. The database also invalidates all objects that depend upon  emp_mgmt . If you subsequently reference one of these objects without explicitly recompiling it first, then the database recompiles it implicitly at run time. To recompile the body of the  emp_mgmt  package in the schema  hr , issue this statement: ALTER PACKAGE hr.emp_mgmt COMPILE BODY; This statement...