How to generate Context File on the R12.2 Database -Tier

 Step 1: The following environment variables must be set in order to run adbldxml.pl.

ORACLE_HOME

export ORACLE_HOME=<Physical Path, where the Oracle DB is installed>

ORACLE_SID

export ORACLE_SID=<name of the SID selected when you installed the DB>

PATH

export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATH

ORA_NLS10

export ORA_NLS10=$ORACLE_HOME/nls/data/9idata

Ensure that the LD_LIBRARY_PATH environment variable is set correctly.

PERL5LIB needs to be set

export PERL5LIB=/u02/app/oracle/product/12.1.0/dbhome_3/perl/lib/5.16.3:/u02/app/oracle/product/12.1.0/dbhome_3/perl/lib/site_perl/5.16.3:/u02/app/oracle/product/12.1.0/dbhome_3/appsutil/perl

Finally set the TNS_ADMIN variable to point to $ORACLE_HOME/network/admin/<SID>_<hostname> :

export TNS_ADMIN=$ORACLE_HOME/network/admin/<SID>_<hostname>

Generating DB Context file

[oracle@vtebs1-lqhjl3 bin]$ perl adbldxml.pl jtop=/u02/app/oracle/product/12.1.0/dbhome_3/jdk/jre

Starting context file generation for db tier..

Using JVM from /u02/app/oracle/product/12.1.0/dbhome_3/jdk/jre/bin/java to execute java programs..

APPS Password:

The log file for this adbldxml session is located at:

/u02/app/oracle/product/12.1.0/dbhome_3/appsutil/log/adbldxml_06180709.log

AC-20010: Error: File - listener.ora could not be found at the location:

/u02/app/oracle/product/12.1.0/dbhome_3/network/admin/eraps1p/listener.ora

indicated by TNS_ADMIN. Context file can not be generated.

Could not Connect to the Database with the above parameters, Please answer the Questions below

Enter Hostname of Database server: vtebs1-lqhjl3

Enter Port of Database server: 1521

Enter SID of Database server: PROD

Enter the value for Display Variable:

Invalid input, reenter the value for Display Variable: ::1

The context file has been created at:

/u02/app/oracle/product/12.1.0/dbhome_3/appsutil/PROD_vtebs1-lqhjl3.xml

[oracle@vtebs1-lqhjl3 bin]$

Comments

Popular posts from this blog

How to troubleshoot long running concurrent request in R12.2

How to run Gather Schema Statistics in R12.2

How to compile forms in R12.2