ORA-29261: bad argument using UTL_HTTP.REQUEST_PIECES
I am running Oracle 10gR2.
I keep getting ORA-29261: bad argument when setting the proxy either by the UTL_HTTP.SET_PROXY or UTL_HTTP.REQUEST_PIECES code. I have searched this forum and found no resolutions. I have set this proxy in the browser and it works fine. The following are excerpts of my code:
Begin
utl_http.set_proxy('http://myproxy/theProxyFile');
End;The error is:
ORA-29261: bad argument
ORA-06512: at "SYS.UTL_HTTP", line 22
ORA-06512: at "SYS.UTL_HTTP", line 888
ORA-06512: at line 2
I get the same error when trying to set the proxy via UTL_HTTP.REQUEST_PIECES.
Thanks in advance,
Becky
Edited by: Becky Eisen on Aug 8, 2011 10:15 AM
Edited by: Becky Eisen on Aug 8, 2011 10:21 AM
After submitting this, I realized that I needed to look in the Proxy file for the actual proxy! Duh.
Similar Messages
-
UTL_MAIL = ORA-29261: bad argument
Hi All,
I am using UTL_MAIL for the first time. I was tring execute UTL_MAIL without setting SMTP_OUT_SERVER
ORA-29261: bad argument
Is it mandatory to set SMTP_OUT_SERVER parameter to user UTL_MAIL?
Thanks in advance for the help.
Regards
Muralimuralirachakonda wrote:
I am using UTL_MAIL for the first time. I was tring execute UTL_MAIL without setting SMTP_OUT_SERVER
ORA-29261: bad argument
Is it mandatory to set SMTP_OUT_SERVER parameter to user UTL_MAIL?Yes. Else how is the UTL_MAIL code to know what the mail server hostname (or IP address) is, and what port to connect to? Lemme check...
Okay - had a look at the code. You do not need to explicitly set this paramater. UTL_MAIL checks for SMTP_OUT_SERVER. If this parameter does not exist or is null, then it uses the DB_DOMAIN parameter as the mail server's name.
Hmmm.. not sure that that will work as the standard is to use mail.domain.com and not domain.com for the domain's SMTP server.
Rather set SMTP_OUT_SERVER explicitly.
PS. Correction. The code is buggy (no surprises there), assuming the unwrapping worked correctly. The code does not cater for a NO_DATA_FOUND exception, the code that assigns the DB_DOMAIN will never be executed. To be honest - this code looks like it has been written by an utter PL/SQL n00b. Which is of concern as this is a standard Oracle PL/SQL supplied package.
Edited by: Billy Verreynne on Feb 4, 2011 6:06 AM -
ORA-29261: bad argument after searching web service from IBM UDDI
I was following the steps listed in the Chapter 6 How to Implement a Web Service of "Database Express Edition 2 Day Plus Application Express Developer Guide" , after the steps of
To create a Web service reference by searching for a business name:
On Application Builder home page, click Shared Components.
Under Logic, select Web Service References.
The Web Service References page appears.
Click Create.
When prompted whether to search a UDDI registry to find a WSDL, select Yes and click Next.
For UDDI Location, select IBM UDDI and click Next.
On Search:
For Search Type, select Business Name.
In Name, enter:
%xMethods%
Click Search.
I got the error ORA-29261. Please help. ThanksVersion of APEX? Version of database?
Looks like you passed in a bad argument to a procedure... Maybe you should wrap the string in single quotes?
Thank you,
Tony Miller
Webster, TX
If vegetable oil is made of vegetables, what is baby oil made of?
If this question is answered, please mark the thread as closed and assign points where earned.. -
POST data using UTL_HTTP
Hi There,
First of all, I am using the UTL_HTTP package for the first time. Basically, we have to POST JSON data to a URL. The format of the data is
{"definition":"Part","item":"Part1","value":"123"}
{"definition":"Part","item":"Part2","value":"789"}
{"definition":"Part","item":"Partn","value":"345"}
Now using the Curl command we can run the comand
$ curl -X POST http://xyz.com/test -H 'Content-Type: application/json' -d '{"items":[
{"definition":"Part","item":"Part1","value":"123"}
{"definition":"Part","item":"Part2","value":"789"}
{"definition":"Part","item":"Partn","value":"345"}The same needs to be implemented in PL/SQL, I found this link
http://technology.amis.nl/2012/01/19/publishing-to-cometd-bayeux-channel-from-inside-the-oracle-database-plsql-based-push-to-cometd-web-client/
I was getting the error
Error report:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1130
ORA-29261: bad argument
ORA-06512: at line 61
29273. 00000 - "HTTP request failed"
*Cause: The UTL_HTTP package failed to execute the HTTP request.
*Action: Use get_detailed_sqlerrm to check the detailed error message.
Fix the error and retry the HTTP request.
This was after I tried changing the POST procedure to a anonymoust block and tried to run it since we do not have create rights on the DB. Before I post the change, just wanted to check if anyone has any suggestions on impementing this in PL/SQL, basically, we just need to send 2 columns data in JSON format to a URL on a daily basis.
ThanksHave a look at the SOAP example in {message:id=4205205}. Posting JSON will be very similar - but instead of a SOAP envelope and header tags, these will be JSON format.
Not sure what response you expect back from the web server. In the case of SOAP, it is XML - so the sample function returns XML. -
Encountering ORA-39000: bad dump file specification while using datapump
Hello,
I am trying to use datapump to take a export of a schema(Meta_data only). However, I want the dump file to be named after the date & time of the export taken.
When i use the following command -- the job runs perfectly.
expdp system@***** dumpfile=expdp-`date '+%d%m%Y_%H%M%S'`.dmp directory=EXP_DP logfile=expdp-`date '+%d%m%Y_%H%M%S'`.log SCHEMAS=MARTMGR CONTENT=METADATA_ONLY
However, I want to run the export using an parfile. but if use the below parfile, i am encountering the following errors.
USERID=system@*****
DIRECTORY=EXP_DP
SCHEMAS=TEST
dumpfile=expdp-`date '+%d%m%Y_%H%M%S'`
LOGFILE=MARTMGR.log
CONTENT=METADATA_ONLY
expdp parfile=martmgr.par
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning option
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-39157: error appending extension to file "expdp-`date '+%d%m%Y_%H%M%S'`"
ORA-07225: sldext: translation error, unable to expand file name.
Additional information: 7217
How do i append date&time to the dumpfile name when using a parfile.
Thanks
RohitI got the below error while using the dumpfile parameter as dumpfile=dump_$export_date.dmp
Export: Release 11.2.0.2.0 - Production on Thu Feb 7 16:46:22 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning option
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-39157: error appending extension to file "dump_$export_date.dmp"
ORA-07225: sldext: translation error, unable to expand file name.
Additional information: 7217
Script i used is as follows
export ORACLE_HOME=/orcl01/app/oracle/product/11.2.0.2
export ORACLE_SID=$1
export PATH=$PATH:$ORACLE_HOME/bin
echo $ORACLE_HOME
export export_date=`date '+%d%m%Y_%H%M%S'`
echo $export_date
expdp parfile=$2
parfile is
DIRECTORY=EXP_DP
SCHEMAS=MARTMGR
dumpfile=dump_$export_date.dmp
LOGFILE=MARTMGR.log
CONTENT=METADATA_ONLY -
Error while using utl_http.request :ORA-12535: TNS:operation timed
Hi.
I'm using 11g
I'm trying to use utl_http.request
I tried select utl_http.request('http://srvab.us.oracle.com') from dual;
and get the below error
Error report:
SQL Error: ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1577
ORA-12535: TNS:operation timed out
ORA-06512: at line 1
29273. 00000 - "HTTP request failed"
*Cause: The UTL_HTTP package failed to execute the HTTP request.
*Action: Use get_detailed_sqlerrm to check the detailed error message.
Fix the error and retry the HTTP request.
I have tried the below steps after checking Oracle KM
BEGIN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(acl => 'ACL_OPSLOG.xml',
description => 'ACL SRVAP AUTOSR PURPOSES',
principal => 'username',
is_grant => true,
privilege => 'connect',
start_date => null,
end_date => null );
COMMIT;
END;
BEGIN
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (
acl => 'ACL_OPSLOG.xml',
host => '*.us.oracle.com',
lower_port => null,
upper_port => null);
COMMIT;
END;
But still no luck.Please assist
Thanks
ArchanaAccording to the exception, the error is not ACL related, but network related.
Basic test. Connect to the Oracle server using a console (e.g. ssh or telnet into the server). On that server, test the network connectivity to the web server. E.g.
telnet srvab.us.oracle.com 80If this fails, then so will PL/SQL code in that Oracle server. -
ORA-39000: bad dump file specification
Hi ,
i exported the dumpfile with %U and its genereated successfully with suffix of 101..102..till 243.
But while importing its searching the file from 01 02 and so in other env.
Could you please assist.
Actual file name start with:
Dump file set for EXPDPUSER.EXPFULL_NW is:
+LMDRPRDERDWDB_ASM_DATA_DISK9/asm_dpump/prod_data_expdb_nw101.dmp
+LMDRPRDERDWDB_ASM_DATA_DISK8/asm_dpump/prod_data_expdb_nw201.dmp
+LMDRPRDERDWDB_ASM_DATA_DISK9/asm_dpump/prod_data_expdb_nw102.dmp
+LMDRPRDERDWDB_ASM_DATA_DISK8/asm_dpump/prod_data_expdb_nw202.dmp
+LMDRPRDERDWDB_ASM_DATA_DISK9/asm_dpump/prod_data_expdb_nw103.dmp
+LMDRPRDERDWDB_ASM_DATA_DISK8/asm_dpump/prod_data_expdb_nw203.dmp
+LMDRPRDERDWDB_ASM_DATA_DISK9/asm_dpump/prod_data_expdb_nw104.dmp
+LMDRPRDERDWDB_ASM_DATA_DISK8/asm_dpump/prod_data_expdb_nw204.dmp
+LMDRPRDERDWDB_ASM_DATA_DISK9/asm_dpump/prod_data_expdb_nw105.dmp
+LMDRPRDERDWDB_ASM_DATA_DISK8/asm_dpump/prod_data_expdb_nw242.dmp
+LMDRPRDERDWDB_ASM_DATA_DISK9/asm_dpump/prod_data_expdb_nw143.dmp
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31640: unable to open dump file "+LMDRSITERDB_ASM_DATA1/dpump/PROD_data_expdb_NW01.dmp" for read
ORA-17503: ksfdopn:2 Failed to open file +LMDRSITERDB_ASM_DATA1/dpump/PROD_data_expdb_NW01.dmp
ORA-15173: entry 'PROD_data_expdb_NW01.dmp' does not exist in directory 'dpump'Thanks,Mishra wrote:
Hi ,
i exported the dumpfile with %U and its genereated successfully with suffix of 101..102..till 243.
But while importing its searching the file from 01 02 and so in other env.
Could you please assist.
Use the SAME format (with the %U) that you used for the export.
This:
"+LMDRSITERDB_ASM_DATA1/dpump/PROD_data_expdb_NW01.dmp"does not look anything like these:
"+LMDRPRDERDWDB_ASM_DATA_DISK9/asm_dpump/prod_data_expdb_nw101.dmp":p -
ORA-39000: bad dump file specification in 11gRAC environment...
Hi All,
I am having two version of Database. Source database is non-RAC environment and target is having RAC environment. I want to perform expdp from 10g and impdp to 11g RAC env.
expdp db is : Oracle 10.2.0.4 (Enterprise Edition) and impdp is : Oracle 11.2.0.1 (EE) RAC environment.
when I do impdp its giving error:
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31640: unable to open dump file "/home/oracle/try_1.dmp" for read
ORA-27037: unable to obtain file status
Linux-x86_64 Error: 2: No such file or directory
and the below is the syntax for impdp:
impdp system/<password>@<service_name> remap_schema=scott10g:scott11g dumpfile=try_1.dmp logfile=scott11g.log directory=mydir
Is there any specific method to do impdp in RAC?
Thanks...see the below method:
~~~~~~~~~~~~~~
SQL> select * from dba_directories;
SYS DATA_PUMP_DIR /u01/app/oracle/admin/prod_db/dpdump/
SYS DPUMP_DIR /u01/app/oracle/product/10.2.0/db_1/impdata_dir
SQL> !
[oracle@temple01 ~]$ expdp system/manager dumpfile=try_1.dmp logfile=try.log directory=data_pump_dir schemas=tom
Export: Release 10.2.0.1.0 - Production on Monday, 15 November, 2010 17:08:53
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** dumpfile=try_1.dmp logfile=try.log directory=data_pump_dir schemas=tom
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 0 KB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Master table "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
Dump file set for SYSTEM.SYS_EXPORT_SCHEMA_01 is:
/u01/app/oracle/admin/prod_db/dpdump/try_1.dmp
Job "SYSTEM"."SYS_EXPORT_SCHEMA_01" successfully completed at 17:09:03
[oracle@temple01 ~]$ cd /u01/app/oracle/admin/prod_db/dpdump/
[oracle@temple01 dpdump]$ impdp system/manager dumpfile=try_1.dmp logfile=try_imp.log directory=data_pump_dir remap_schema=tom:test1
Import: Release 10.2.0.1.0 - Production on Monday, 15 November, 2010 17:10:33
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
Starting "SYSTEM"."SYS_IMPORT_FULL_01": system/******** dumpfile=try_1.dmp logfile=try_imp.log directory=data_pump_dir remap_schema=tom:test1
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Job "SYSTEM"."SYS_IMPORT_FULL_01" successfully completed at 17:10:34
Edited by: CKPT on Nov 15, 2010 5:20 PM -
Error while invoking webservice using UTL_HTTP from PL/SQL Block
Hi All,
I am invoking a webservice (SOAP Request) from a PL/SQL block using UTL_HTTP package.
I am able to send the complete request and am getting the required instance on the BPEL Console, but the process is erroring out while getting response back.
and the PL/SQL Block is ending in error mentioned below:
ERROR at line 1:
ORA-29266: end-of-body reached
ORA-06512: at "SYS.UTL_HTTP", line 1321
ORA-06512: at "APPS.CSM_BPEL_TEST_PKG", line 34
ORA-06512: at line 1
Package is completing successfully if i test in local DB and local BPEL.
But giving above error in client's.
Can anyone let me know what is the cause of this.
Thanks in advanceI got it working by making process Synchronous.
But with asynchronous process it is still same error.
Thanks... -
Error while invoking webservice using UTL_HTTP package
Hi All,
I am invoking a webservice (SOAP Request) from a PL/SQL block using UTL_HTTP package.
I am able to send the complete request and am getting the required instance on the BPEL Console, but the process is errorring out while getting response back.
and the PL/SQL Block is ending in error mentioned below:
ERROR at line 1:
ORA-29266: end-of-body reached
ORA-06512: at "SYS.UTL_HTTP", line 1321
ORA-06512: at "APPS.CSM_BPEL_TEST_PKG", line 34
ORA-06512: at line 1
Can anyone let me know what is the cause of this.
Thanks in advanceMy guess would be that your request is not properly constructed,
29266, 00000, "end-of-body reached"
// *Cause: The end of the HTTP response body was reached.
// *Action: If the end of the HTTP response is reached prematurely, check if
// the HTTP response terminates prematurely. Otherwise, end the
// HTTP response.John -
Problem in Using Utl_Http package
Hi to all,
I'm trying to send the sms(Short Message Service) using utl_Http package. When I'm trying to run a sql statement like
SELECT utl_http.request('http://www.oracle.com/index.html') FROM dual
I'm getting an error message like this.
The following error has occurred:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1577
ORA-12545: Connect failed because target host or object does not exist
ORA-06512: at line 1
Pls help me to solve this problem.
Regards,
Alok DubeyThank you for ur reply. Infact my database was not able to access the internet. currently, it is working fine.
I'am using this code. It's works well.
CREATE OR REPLACE PROCEDURE Send_Sms_Http
AS
text_str VARCHAR2(5000);
V_Message VARCHAR2(200) := REPLACE('This is a DEMO SMS sent to u on '||TO_CHAR(SYSDATE,'DD/MM/RRRR HH12:MI:SS AM'),' ','%20');
text_sms VARCHAR2(5000) := 'http://hapi.smsapi.org/SendSMS.aspx?UserName=xxxx&password=xxxx&MobileNo=xxxx,xxxxx&SenderID=xxxx&CDMAHeader=xxxxx&Message='||V_Message;
BEGIN
text_str := utl_http.request(text_sms);
Dbms_Output.Put_Line('text_str = '||text_str);
EXCEPTION
WHEN OTHERS THEN
Dbms_Output.Put_line('Error in sending the message'||SQLERRM);
END;
Regards,
Alok Dubey -
Utl_http.request_pieces Exception
Hi
oracle 10g
I am trying to construct a report server request url dynamically and call utl_http.request_peices to execute the url to run the report from my package. The URL string that is constructed by the package, runs sucessfully if I run the URL from the browser, but the utl_http.request_peices call bombs with utl_http.request_failed exception. When I used utl_http.get_detialed_sqlerrm to display the error this is what I found
http requestfailedORA-06553: PLS-103: Encountered the symbol "=" when expecting one of the following: etc
My url string is of type
http://<myserver>/reports/rwservlet?SRCN9659pdf_tst2&DESNAME<mypath>/<myrename>_2485_LeakId_1_20080714141944.pdf&OUTPUTIMAGEFORMAT=JPEG&p_sonris_inspection_line_id=2485&p_lr_seq_num=1
I stepped thru, added awatch and copied the url_str variable and executed the same in the browser. It ran successfully. But fails with the above mentioned error with utl_http.request_pieces call.
Any ideas?
ThanksHad the same issue again... Problem was I was trying to run the procedure in DEBUG mode in Toad. That caused this weird error. Ran the procedure from the editor in a plsql anon block and it ran fine...
....? -
Downloading of PPT using UTL_HTTP
Hi All,
I want one solution such a way that we have some urls stored in our database, so we are going to retrive the data that are in ppt format from this urls and store it in the ppt format in our database and my problem is the urls are password protected thats why when we use utl_http package we are getting blank ppt getting saved. So i want a solution as to how can we authenticate in the process ,while retrieving data from url.Can anybody please help me.
Thanks
Edited by: dil84 on Jan 19, 2009 11:45 PMHello,
Take a look at the following thread -
Re: UTL_HTTP.REQUEST_PIECES on a page that needs log in
Hope this helps,
John
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! -
Bridge CS4 Bad argument {LiveObject("Thumbnail").property(0)}
Can anyone assist with resolving this error message? Bad argument {LiveObject("Thumbnail").property(0)}
It happens after saving a Gallery.
Using Windows 7 + Dreamweaver CS4
Thank youHi
Can you provide more details to reproduce such error?
e.g.
1. launch bridge
2. choose some files, in output mode, choose a template..
3..etc
thanks. -
Error when running script to reset size - bad argument gettokenmanager
Hello,
I use RoboHelp HTML 8 (currently on 8.0.2.208) and have a project with a number of user interface images that are going to be translated. The translated images will likely be of different size, so I need to have a fast way of reseting all the image sizes in my project.
I discovered Chasnikov's script "reset all images" on the thread:
http://forums.adobe.com/message/2128583#2128583
which seems just perfect for my situation.
Not wanting to test this on my real project, I made a copy in a different location and tested out the script. The script ran for a while, but then abruptly ended with the following message:
Bad argument getTokenManager
In looking at the output window it seemed like it stopped in the middle of a topic after going through a number of topics. For my test situation, I only replaced a few graphics in a few topics and when I checked this limited sample, they all seemed to be correctly resized.
However, my concern is that if I use this script in my real project, it won't actually resize all of the images.
Any ideas why the script is terminating abruptly?
By the way, I did find a similar question about this error message in the thread http://forums.adobe.com/message/2551147
however, the solution to add the line msg(filepath); to the script resulted in another error -- RH did not recognize 'msg' as a valid command.
Thanks, RoseThanks Willam for the advice. In the meantime I realized that there was something wrong with my project--because the word count script also gave me the same error message -- so I ran it on another version of the project and it was just fine.
There are two questions that your response brings to mind:
1. How are you able to see the line numbers in the script? When I edit the script, it opens in Notepad and I can't turn on line numbers. I have discovered, that if I have word wrap off, I can use Goto and specifiy a line number to go to. Are you using a different text editor?
2. The reset size script doesn't announce that it is finished. It just seems to stop displaying things in the output window, but it doesn't give me a message to say it has finished. Can you recommend some code I could add to the reset size script to output that it has finished processing sucessfully?
Thanks in advance.
Rose
Maybe you are looking for
-
Unable to update iPhoto and iMovie. "Update Unavailable with This Apple ID"
I updated to Yosemite and all went well but for the message "Update Unavailable with This Apple ID" for the two apps iPhoto and iMovie. I have tried using the terminal window and used code that others have suggested and obtained a SmartSearch. I dele
-
Connecting hp psc 950 to iMac Intel with USB cable
I have had my iMac for about 14 months and have been using an old Dell PC for most of my printing needs. I have reached the point that I want to convert everything to the iMac. I have Fusion and am running Windows 7 there so I can use Quicken 2010 (t
-
When i turn my iPad on, it keeps showing me how to use it, some random pictures, how to use mail etc. Anyway how to disable this?
-
Control-click doesn't select multiple thumbnails?
Two of our workstations have recently lost the ability to control-click to select multiple thumbnails. Control-click works in other applications, including Windows Explorer, but control-clicking in the thumbnails pane in Acrobat simply selects the ne
-
Data Services EnglishNorthAmerica_DataCleanse - dictionary person_firm_en
We're trying to use the EnglishNorthAmerica_DataCleanse. Symptons are: Dictionary table DC_DICTIONARY is empty No output fields show up in the DataCleanse transform. Validation complains about a missing dictionary, person_firm_en How do we get and i