- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- UTL_TCP.OPEN_CONNECTION RETURNS ORA-20002: INVALID...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2002 03:36 AM
тАО05-31-2002 03:36 AM
UTL_TCP.OPEN_CONNECTION RETURNS ORA-20002: INVALID ARGUMENT
SQL> Declare
2 con UTL_TCP.connection;
3 ret PLS_INTEGER;
4 Begin
5 con := UTL_TCP.open_connection ('c7pc1248',7788);
6 dbms_output.put_line('Connection Opened');
7 UTL_TCP.close_connection(con);
8 dbms_output.put_line('Fini.');
9 exception
10 when others then
11 UTL_TCP.close_all_connections;
12 raise;
13 End;
14 /
Declare
*
ERROR at line 1:
ORA-20002: Invalid argument
Invalid argument
ORA-06512: at line 12
.
.
Note that UTL_SMTP works fine from the same server.
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2002 04:35 AM
тАО05-31-2002 04:35 AM
Re: UTL_TCP.OPEN_CONNECTION RETURNS ORA-20002: INVALID ARGUMENT
http://download-west.oracle.com/otndoc/oracle9i/901_doc/appdev.901/a89852/utl_tcp.htm
http://download-west.oracle.com/otndoc/oracle9i/901_doc/appdev.901/a89852/utl_tcp4.htm
You should check the parameter format for the call.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2002 05:09 AM
тАО05-31-2002 05:09 AM
Re: UTL_TCP.OPEN_CONNECTION RETURNS ORA-20002: INVALID ARGUMENT
I am no SQL person, but your script is similar to one posted here which shows how to set it up for testing.
http://www.exzilla.net/exDocs/internetPackages/Internet-Packages-utl_tcp.shtml
Cheers!
Cheryl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2002 05:29 AM
тАО05-31-2002 05:29 AM
Re: UTL_TCP.OPEN_CONNECTION RETURNS ORA-20002: INVALID ARGUMENT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2002 04:10 AM
тАО06-03-2002 04:10 AM
Re: UTL_TCP.OPEN_CONNECTION RETURNS ORA-20002: INVALID ARGUMENT
I've reposted the question because I've noticed that the procedure returns a "Connection refused" when it is run from an NT server.
I suspect that the error is not correctly handled on the HP-UX version of 8.1.7.
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2002 01:11 AM
тАО06-04-2002 01:11 AM
Re: UTL_TCP.OPEN_CONNECTION RETURNS ORA-20002: INVALID ARGUMENT
$ORACLE_HOME/javavm/install/initjvm.sql $ORACLE_HOME/javavm/install/init_security.sql
$ORACLE_HOME/rdbms/admin/initplsj.sql