utPLSQL Installation and Upgrade
This article demonstrates the installation and upgrade of the utPLSQL unit test framework for PL/SQL.
oracle miscconfigurationintermediate
by OracleDba
16 views
This article demonstrates the installation and upgrade of the utPLSQL unit test framework for PL/SQL.
123
cd /u01/software
unzip utPLSQL.zip
cd utPLSQL/source12345678910111213141516171819
export PDB_NAME=pdb1
export ORACLE_SID=cdb1
export USERNAME=ut
export PASSWORD=myUtPassword123
export ORAENV_ASK=NO
. oraenv
export ORAENV_ASK=YES
sqlplus / as sysdba <<EOF
alter session set container = ${PDB_NAME};
-- Comment out the following line if you are reusing an existing user.
@create_utplsql_owner.sql ${USERNAME} ${PASSWORD} users
@install.sql ${USERNAME}
@create_synonyms_and_grants_for_public.sql ${USERNAME}
exit;
EOF1234567891011121314151617
export ORACLE_SID=orcl
export USERNAME=ut
export PASSWORD=myUtPassword123
export ORAENV_ASK=NO
. oraenv
export ORAENV_ASK=YES
sqlplus / as sysdba <<EOF
-- Comment out the following line if you are reusing an existing user.
@create_utplsql_owner.sql ${USERNAME} ${PASSWORD} users
@install.sql ${USERNAME}
@create_synonyms_and_grants_for_public.sql ${USERNAME}
exit;
EOF123456789101112131415
export PDB_NAME=pdb1
export ORACLE_SID=cdb1
export USERNAME=ut
export ORAENV_ASK=NO
. oraenv
export ORAENV_ASK=YES
sqlplus / as sysdba <<EOF
alter session set container = ${PDB_NAME};
@uninstall.sql ${USERNAME}
-- Uncomment the following line if you want to drop the user.
--DROP USER ${USERNAME} CASCADE;
exit;
EOF12345678910111213
export ORACLE_SID=orcl
export USERNAME=ut
export ORAENV_ASK=NO
. oraenv
export ORAENV_ASK=YES
sqlplus / as sysdba <<EOF
@uninstall.sql ${USERNAME}
-- Uncomment the following line if you want to drop the user.
--DROP USER ${USERNAME} CASCADE;
exit;
EOFPlease to add comments
No comments yet. Be the first to comment!