How to Fix Oracle 19c txkGenCDBTnsAdmin.pl Error – “Can’t locate TXK/ARGS.pm”

While working with Oracle E-Business Suite 19c, generating CDB TNS Admin entries using the txkGenCDBTnsAdmin.pl script may fail on Linux with the following error:

Can’t locate TXK/ARGS.pm in @INC (you may need to install the TXK::ARGS module)

This blog explains the cause and a simple solution to make the script run successfully.

Issue

run the following commands:

cd /u01/8051/db/19.3.0/appsutil
source ./txkSetCfgCDB.env -dboraclehome=/u01/8051/db/19.3.0

cd /u01/8051/db/19.3.0/appsutil/bin

/u01/8051/db/19.3.0/perl/bin/perl txkGenCDBTnsAdmin.pl -dboraclehome=/u01/8051/db/19.3.0 -cdbname=EBSCDB -cdbsid=ERPCDB -dbport=1572 -outdir=/u01/8051/db/19.3.0/appsutil/log -virtualhostname=ebs

Error returned:

Can’t locate TXK/ARGS.pm in @INC (you may need to install the TXK::ARGS module) (@INC contains: /u01/8051/db/19.3.0/perl/lib/site_perl/5.28.1/x86_64-linux-thread-multi /u01/8051/db/19.3.0/perl/lib/site_perl/5.28.1 /u01/8051/db/19.3.0/perl/lib/5.28.1/x86_64-linux-thread-multi /u01/8051/db/19.3.0/perl/lib/5.28.1) at txkGenCDBTnsAdmin.pl line 72.
BEGIN failed–compilation aborted at txkGenCDBTnsAdmin.pl line 72.


Solution

Start a Fresh Session

  • Open a new terminal session
  • Log in as the db user

Set Environment Cleanly

cd /u01/8051/db/19.3.0/appsutil
source ./txkSetCfgCDB.env -dboraclehome=/u01/8051/db/19.3.0

Run the Script

/u01/8051/db/19.3.0/perl/bin/perl txkGenCDBTnsAdmin.pl -dboraclehome=/u01/8051/db/19.3.0 -cdbname=EBSCDB -cdbsid=EBSCDB -dbport=1572 -outdir=/u01/8051/db/19.3.0/appsutil/log -virtualhostname=ebs

Script should run successfully without the TXK::ARGS.pm error


Conclusion

The “Can’t locate TXK/ARGS.pm” error in Oracle 19c txkGenCDBTnsAdmin.pl is environment-related, not a missing module.

Permanent practice for Oracle 19c DB-Tier scripting:

  1. Open a fresh Putty session
  2. Source environment only once
  3. Run required Perl scripts

This ensures smooth execution and avoids Perl library path conflicts

About Syed Raheel

I have total of 17 years and more than 15 years experience in Oracle ERP E-Business Suite R11i , R12.1.3 , 12.2.4 to 12.2.11 with Oracle 10g/11g/12c and 19c with Red Hat / Oracle Enterprise Linux Environments. I am Working as Oracle EBS APPS Database Consultant in Advanced Operations Technology, A Saudi Arabian IT/ERP Consulting firm, I am responsible for New Technical Implementations, Upgradation, Migrations and Providing 24x7 support for critical ERP Production Application & Databases. Specialties: Oracle Application Oracle E-Business Suite R12 Oracle Applications System Administration Oracle Applications Database Administration

Check Also

AKS_Cover

Restrict Applications Users To Be Signed In

How Can I Restrict Applications Users To Be Signed In Only Once At Any Time …

Leave a Reply