PL/SQL procedure to run an ODI load plan via the web service
Someone at - it a procedure from PL/SQL to run a load of ODI Plan using a web service?
These discussions helped:
Problems with UTL_HTTP and problems of access to the network
Tags: Business Intelligence
Similar Questions
-
Problem running the report with the Web Service and BI Publisher
Hello
In fact, I'm trying to run a report of Bi Publisher via the Web Service.
I use the following documents:
-http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/bip_webservice_101331.htm
-"How to integrate Oracle BI Publisher via Web Services in the form of Oracke.
Everything works fine. But when I try to copy the file on the local computer is 0 length. I use the method of "getReportBytes".
Here's the code I tried with:
String userName = "Administrator";
String password = "Administrator";
System.out.println ("calling" + myPort.getEndpoint ());
System.out.println (myPort.validateLogin (username, Password));
ReportRequest repReq = new ReportRequest();
RepRes ReportResponse = new ReportResponse();
repReq.setAttributeFormat ("pdf");
repReq.setAttributeLocale("en-US");
repReq.setAttributeTemplate ("sales world");
repReq.setReportAbsolutePath ("/ Sales Manager/World Sales/World Sales.xdo");
repRes = myPort.runReport (repReq, userName, passWord);
System.out.println (repRes.getReportContentType ());
Byte [] binaryBytes = repRes.getReportBytes ();
OutputStream out = new FileOutputStream ("D:
out.pdf");
out. Write (binaryBytes);
out. Close();
System.out.println ("success for performance report');
Thanks in advance.Hello
I assume you are using 10.1.3.4. Otherwise, my index is not relevant to you...
There is a new parameter in the web service API to set the size of the segment. HéLas is by default not so, the behavior is as in versions (not size segment... the entire document at once). If you set the size of segment-1, you should get your document. So, try adding
repRequest.setSizeOfDataChunkDownload(-1);concerning
Rainer -
Hello
How can I force DAC to run always full load for one of the task that executes the stored procedure? And remaining tasks load incremental in the second and sub sequent executions.
Thank you
Jay.
Hi if your task is running an informatica mapping you can set your DAC task to run the full mapping for incremental and full loads, so tab task just point to the mapping.
Hope that helps.
Thank you
-
Call to Web Service of Oracle PL/SQL not to call the Web service in SOA Server
Hello
Try to call the Web service to oralce pl/sql function
created a function
Unable to invoke the web service from the server of the SOA.
CREATE or REPLACE FUNCTION HelloWorld_WebServices(S_STRING Varchar2) RETURN VARCHAR2 as
Server sys.utl_dbws. SERVICE;
APPEL_ sys.utl_dbws. CALL;
service_qname sys.utl_dbws. QNAME;
port_qname sys.utl_dbws. QNAME;
response sys. XMLTYPE;
application sys. XMLTYPE;
BEGIN
sys.utl_dbws.set_http_proxy ("hostname: Port'");
service_qname: = sys.utl_dbws.to_qname ("ns1", "process");
Server: = sys.utl_dbws.create_service (service_qname);
APPEL_: = sys.utl_dbws.create_call (server);
sys.utl_dbws.set_target_endpoint_address (APPEL_, ' http:/host name: port/soa-infra/services/OFS/HelloWorld/helloworld_client_ep ');
sys.utl_dbws.set_property (APPEL_, 'OPERATION_STYLE', 'process');
asks: = sys. XMLTYPE ("< ns1:process xmlns:ns1 ="http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld"> < ns1:input > < / ns1:input > < / ns1:process > '");
answer: = sys.utl_dbws.invoke (APPEL_, request);
return response.extract('//HelloWorld/child::text() ','http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld'). getstringval();
DBMS_OUTPUT. Put_line ("values of the OutputsVariables8");
-Of return ';
END;
Run - the code below:
Select HelloWorld_WebServices ('Hi') to double;
Error:
ORA-29532: Java call terminated by eception Java exception: java.lang.NoClassDefFoundError
ORA-06512: at "SYS." UTL_DBWS', line 403
ORA-06512: at "SYS." UTL_DBWS', line 400
ORA-06512: at the 'APPS '. HELLOWORLD_WEBSERVICES', line 74
29532 00000 - "Java call terminated by eception Java exception: %s."
* Cause: A mistake or a Java exception has been reported and could not be
solved by Java code.
* Action: Modify Java code, if this behavior is not expected.
Hello
Fixed the error
After loading once again of DBA and network provided access files JAR/JVM firewall
and the correction on the threshold
Return response.extract (' / result/child::text () ','xmlns = "http://xmlns.oracle.com/OFSOrderServices/HelloWorld/HelloWorld" '). getstringval();
-
I created the Web service VI ("Mt-insolacije.vi"), which has two terminals of the input string (FROM / TO) for the dates of arrival and exit of two data terminals (table 1 d) from database (MS SQL server). This VI communicates with the database with functions of the database with a DSN and SQL query appropriate palette. There are two tables with two data (time and Insolation) columns in the database.
This VI works when you run in Labview 2010, but when I used it as VI in UI Builder it returns no data.
Could you please help me find a solution. Is it possible to communicate with the SQL server database in this way or there is another way?
There are two files attachmet: Image of .vix file in Interface builder and .vi file ("Mt-insolacije.vi")
Please help me ASAP!
Thank you
Ivan
I found the solution problem is in the DSN. I've been using the user instead of DSN system DSN.
It's important to create the system DSN if you want your VI of web service to communicate with the database.
PS Please put feature bundle format timestamp and XY graph in the web user interface designer. It's complicated to trace data with datetime on X axis without them.
-
By using the web service ActionsService to load the account data
Hello
We are looking to automate the loading data of an EPM - HFM Application accounts.
We wre able to charge through the front-end server. About Automation, we were able to configure GOSA strategies for the web service, create the native user in console weblogic and import and use the public key of client web service proxy.
The URL of the wsdl file that we ask is http://192.168.50.21:7363 / oracle-EMP-fm-Web services/ActionsService? wsdl
The method we are trying to call is iActionsService.loadData ("clustername", "name the Application", "E:\\testpad\\Hyperion\\data\\DATA.txt", null, ",", DataLoadMode.MERGE, false, false);
The errors below are found in the file log immediately after the race. Please help us find what needs to be done in the setting of these errors. Are we sending the right params to the web service?
Do we still need to make other changes to weblogic/em to make this work? Please suggest.
Oracle EPM-edition of Fusion
version - 11.1.2.4.0.79
Thank you and best regards,
Guna
Newspapers, we find that
We might be able to connect to the application - Session is created with the Session id: 5e95de6f-e828-4121-8765-36c186e72355
An unexpected error has occurred-
oracle.epm.fm.common.exception.HFMException: EPMHFM-65536: an unexpected error has occurred.
at oracle.epm.fm.common.exception.ExceptionHelper.handleException(ExceptionHelper.java:45)
at oracle.epm.fm.domainobject.loadextract.LoadExtractOM.loadData(LoadExtractOM.java:281)
Error EPMHFM-65925
java.lang.NullPointerException
at org.apache.thrift.protocol.TCompactProtocol.writeString(TCompactProtocol.java:325)
at oracle.epm.fm.thrift.protocol.TMultiplexedProtocol.writeString(TMultiplexedProtocol.java:112)
to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ loadData_args$ loadData_argsStandardScheme.write(LoadExtractHandlerService.java:10236)
to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ loadData_args$ loadData_argsStandardScheme.write(LoadExtractHandlerService.java:10152)
to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ loadData_args.write(LoadExtractHandlerService.java:10087)
at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:63)
to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ Client.send_loadData (LoadExtractHandlerService.java:639)
to oracle.epm.fm.common.service.loadextract.LoadExtractHandlerService$ Client.loadData (LoadExtractHandlerService.java:629)
at oracle.epm.fm.domainobject.loadextract.LoadExtractOM.loadData(LoadExtractOM.java:269)
at oracle.epm.fm.actions.LoadDataAction.execute(LoadDataAction.java:100)
at oracle.epm.webservices.fm.ActionsService.LoadData(ActionsService.java:315)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
Post edited by: 2837182
Got it working now.
Case of a brain freeze. The data file must be located on the server.
-
Hello
my English is not very good
I use jdeveloper 11.1.1.3.0.
I have a function in the module of the application. return type of function is 'list < ViewObjRowImpl > '.
I'm a Web Service from this function
Accordingly, I have run 3 view Obj and do a calculation on the objects in view. then I put the final value in other Obj view (4th). and then I put the 4th view Obj value in a list < ViewObjRowImpl >.
part of the code
Set of lines objRowSet = getViewObjectImpl () .getRowSet ();
objRowSet.first ();
< ViewObjRowImpl > the list result = new ArrayList < ViewObjRowImpl > ();
for (int i = 0; i < objRet.getRowCount () 2; i ++) {}
result. Add (i, (ViewObjRowImpl) objRet.getCurrentRow ());
objRet.next ();
}
try {}
return the result;
}
catch (Exception e) {}
///////////////////
When I send the parameter to the Web Service and run the Web Service: correctly fill the list with the value of obj view, and also the function run the last line 'result' and don't you go into the catch block
but the Exception below is coming:
< JAXWSMessages > < Journal > Exception during execution of the business logic: Transaction has expired after 34 seconds
BEA1-023E16AE9EC79E472B1E
I don't know why, can anyone help me?You can try to increase the JTA transaction time-out in Weblogic. http://docs.Oracle.com/CD/E13222_01/WLS/docs81/ConsoleHelp/domain_domain_config_jta.html
(which is perhaps too short for your 30 ws)Dario
-
How to plan a report BI to run daily/weekly by a call to Web Service
Hello
I'm a race report BI of apex via BPEL. However, I am planning the daily/weekly report by the web service call.
When you're logged in BI Publisher, there are options to plan the report as daily/weekly, Sun, my... etc.
But I did find the same options in the Web Service of BI Publisher, except the <>, < repeatInterval > repeatCount.
Please inform as to schedule the report daily, weekly, monthly etc by a Web Service call.
Here is the soap envelope that works very well to run the report immediately.
< soapenv:Envelope xmlns:soapenv = 'http://schemas.xmlsoap.org/soap/envelope/' xmlns:pub = "http://xmlns.oracle.com/oxp/service/PublicReportService" >
< soapenv:Header / >
< soapenv:Body >
< pub: scheduleReport >
< pub: scheduleRequest >
< pub: deliveryRequest >
< / pub: deliveryRequest >
< pub: reportRequest >
PDF of < pub: attributeFormat > < / pub: attributeFormat >
EN < pub: attributeLocale > < / pub: attributeLocale >
defaultlayout < pub: attributeTemplate > < / pub: attributeTemplate >
< pub: reportAbsolutePath > /myfolder/test_report3/test_report.xdo < / pub: reportAbsolutePath >
< pub: produitLogiciels > cid:642449734574 < / pub: produitLogiciels >
< / pub: reportRequest >
< pub: userJobName > testjob < / pub: userJobName >
< / pub: scheduleRequest >
< pub: userID > administrator < / pub: userID >
< pub: password > administrator < / pub: password >
< / pub: scheduleReport >
< / soapenv:Body >
< / soapenv:Envelope >
Thank you
Yogi
Published by: Yogi 20 Sep, 2010 14:47You must use the function 'ScheduleRequest', in which you cronExpression in it, here, you can provide your personalized schedule
-
How to transfer data from oracle to the web service using ODI with axis2 tech
Hi all
Can someone cause a document or markets about 'How to transfer data from oracle to the web service with the help of ODI with AXIS2 technology'
If any person with a document or markets, please share it with me
Thank you
PhaniI can give you a few examples of web services in ODI, perhaps that you find them useful?
Try: -.
http://John-Goodwin.blogspot.com/2009/04/ODI-series-Web-services.html
http://John-Goodwin.blogspot.com/2009/05/ODI-series-Web-services-part-3.html
http://John-Goodwin.blogspot.com/2009/05/ODI-series-Web-services-part-4.htmlSee you soon
John
http://John-Goodwin.blogspot.com/ -
BB Storm JDE 4.7
I saw messages saying that you can only run the .jad file loading and leave the browser prompts the user and get the .cod file, etc, etc and it comes to maintain security.
Now, this sounds like you can not just write code that could read a jad from a URL file and then read the files of cod points the jad file. that is, you can't do it's what involve positions that I've seen.
I want to do it (for reasons that are too long to go here) and think that I know a method that should work and I want to check if what I propose will work.
First of all, I can directly load the contents of a URL using a httpConnection object because it can open the URL as an input stream.
So, I can load the .jad file AND the .cod files down using httpConnection objects.
Is this true or am I missing something?
Thank you
-Donald
On its nature jad file is a text file. And you can get its content and analyze.
There is also a net.rim.device.api.system.CodeModuleManager class
that contains the method:
public static boolean writeNewModule(int newModuleHandle,
int newModuleOffset,
Byte [] data,
int offset,
int length)Writes the data to a newly created module.
Parameters:
newModuleHandle - handle createNewModule returnd (int).
newModuleOffset - Byte offset in the module in which to write the data.
data - the array of bytes of data to write.
Offset - the offset into the data byte.
length - the number of bytes to write.
Returns:
True if the operation succeeds; false otherwise.
Since:
JDE 4.0.2Category:
Signed: This item is only available to signed clients. If you intend to use this item, please contact RIM to establish the necessary agreements that will allow you to have your signed COD files. Signature is required for use on the device, as part of the JDE development may occur without signing the Cod.As you can see you can load an array of bytes of the http connection and write it as a module (application) directly on memory internal to the unit.
-
Error ODI (10.1.3.6) launches the Web Service of HPL
I do turn a question with ODI version 10.1.3.6 when we pull data from BSE and then try to push planning. Everything works fine until it will launch the HPL webservice, ODI throws an error:
"Error in the launch HPL Web Service
"com.sunopsis.wsinvocation.SnpsWSInvocationException: java.lang.NullPointerException.
The null pointer would seem to indicate that a value is missing, but I don't know where to look. Anyone have any ideas on how to increase the logging level or where I could find an answer?
Thank you!
Thank you, we are in fact on 11.1.2.1.0 so that doesn't apply to my version, but we found the problem. After you run the epmsys_registry.sh tool, we found that the jdbc url for ERPi had changed to /SID from: SID meaning that he was looking for a service, not a SID. Don't know how it happened elsewhere, but after re - run the configtool.sh was all indented properly.
Thank you very much, if. I appreciate the comments.
-
SecurityError #2170 during the web service method call online while WSDL loads very well
Hello everoby,
I am struggling with the files of security policy for two days, and I nervously damaged now.
I have an animation developed inside the Flash IDE, tested in a local HTML file inside of a browser and in the same browser, but within a page hosted from a Web server.
That animation interacts with a Web Service based on a third party server. This server has a simple crossdomain.xml file to the root directory:
< cross-domain-policy >
< allow-access-from domain="*.myserver.fr"/ >
< allow-access-from domain="***.***.***.***"/ >
< / cross-domain-policy >is the name of the server that hosts the animation and the IP address is that of my PC becomes when he is seen out on the internet.
- When I test my Flash IDE animation, everything's fine, WSDL is loaded, remote pmethod is called
- When I test inside a file HTML local, everything is fine again, crossdomain.xml file is loaded, WSDL is requested, then method is called ok ;
- When I test on the animation load crossdomain.xml file, Web server and gets the WSDL file also, BUT when he tries to run a web service method based on the same URL, WSDL, I had a SecurityErrorEvent #2170 with no other information than that! Request the WSDL turns on OK but not calling the method one... Player is allowing not happened it allows the WSDL, one on the same URI... Small jets is hapennihng here!
Then I call the lunatic asylum.
Anyone having any idea on this subject?
Crazy François
PS: Players used: 10,1,103,22 with Chrome and 10.2 with firefox, same result :/
I think you need to include
and
in crossdomain.xml
-
Cannot create the web service stored procedure.
I can create more web services is by right clicking on the package of the stored procedure in the db connection. This good worked before and I cannot explain why I can't see this option. Grateteful for tips on why it has stopped working.'2009' is what Oracle said.
John
-
Creating a PL/SQL procedure to run the following code but the landing upwards errors!
Hey all!
This is my first time with PL/SQL. I created the following procedure to load a major part of the update instructions at the same time to read the DB performance. I need to print a sysdate timestamp before and after the load so that I can know how long it takes for the DB update prescribed lines. I gave 100 lines initially and will keep changing. When I run this code, I came across some errors. Could you please help me with it.
CODE:
PROCEDURE FACT_UPDATE
IS
DECLARE
CNT NUMBER: = 0;UPD CURSOR is
SELECT
'UPDATE XXAFL_MON_FACTS_F SET TASK_WID =' | NVL (TO_CHAR (TASK_WID), 'NULL') |', EXECUTION_PLAN_WID =' | NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL').
', DETAILS_WID =' | NVL (TO_CHAR (DETAILS_WID), 'NULL') |', SOURCE_WID =' | NVL (TO_CHAR (SOURCE_WID), 'NULL') |', TARGET_WID = ' | NVL (TO_CHAR (TARGET_WID), 'NULL').
', RUN_STATUS_WID =' | NVL (TO_CHAR (RUN_STATUS_WID), 'NULL') |', SEQ_NUM =' | NVL (TO_CHAR (SEQ_NUM), 'NULL') |', NAME = "' | NVL (TO_CHAR (NAME), 'NULL').
"', NO_POSITION =" ' | NVL (TO_CHAR (INSTANCE_NUM), e ') | " ', INSTANCE_NAME = "' | NVL (TO_CHAR (INSTANCE_NAME), 'NULL').
"', TYPE_CD =" ' | NVL (TO_CHAR (TYPE_CD), e ') | " ', STATUS_CD = "' | NVL (TO_CHAR (STATUS_CD), e ') | " ', START_TS =' | Decode (START_TS, null, "to_date('''|| to_char (START_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
', END_TS =' | Decode (END_TS, null, "to_date('''|| to_char (END_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', DURATION = ' | NVL (TO_CHAR (DURATION), 'NULL') |', STATUS_DESC = "' | NVL (TO_CHAR (STATUS_DESC), 'NULL').
"', DBCONN_NAME =" ' | NVL (TO_CHAR (DBCONN_NAME), e ') | " ', SUCESS_ROWS =' | NVL (TO_CHAR (SUCESS_ROWS), 'NULL').
', FAILED_ROWS =' | NVL (TO_CHAR (FAILED_ROWS), 'NULL') |', ERROR_CODE = ' | NVL (TO_CHAR (ERROR_CODE), 'NULL') |', NUM_RETRIES =' | NVL (TO_CHAR (NUM_RETRIES), 'NULL').
', READ_THRUPUT =' | NVL (TO_CHAR (READ_THRUPUT), 'NULL') |', LAST_UPD = ' | Decode (LAST_UPD, null, "to_date('''|| to_char (LAST_UPD,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', RUN_STEP_WID = "' | NVL (TO_CHAR (RUN_STEP_WID), 'NULL').
"', W_INSERT_DT = ' | Decode (W_INSERT_DT, null, "to_date('''|| to_char (W_INSERT_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', W_UPDATE_DT = ' | Decode (W_UPDATE_DT, null, "to_date('''|| to_char (W_UPDATE_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
', START_DATE_WID =' | NVL (TO_CHAR (START_DATE_WID), 'NULL') |', END_DATE_WID = ' | NVL (TO_CHAR (END_DATE_WID), 'NULL') |', START_TIME =' |
NVL (TO_CHAR (START_TIME), 'NULL') |', END_TIME =' | NVL (TO_CHAR (END_TIME), 'NULL'). "WHERE INTEGRATION_ID ="' | INTEGRATION_ID | " « ; » AS a Column OF XXAFL_MON_FACTS_F;BEGIN
dbms_output.put_line (sysdate);
to record in a loop of the UPDdbms_output.put_line (record.col_name);
immediately run record.col_name;CNT: = cnt + 1;
If cnt > 1000
and then commit;
CNT: = 0;
dbms_output.put_line (sysdate);
end if;
end loop;
dbms_output.put_line (sysdate);
END; -ProcedureERRORS:
Error starting line: 1 at the controls.
PROCEDURE FACT_UPDATE
Error report-
Unknown commandError from line: 2 in command.
IS
Error report-
Unknown command
Error from line: 3 in command.
DECLARE
CNT: = 0;UPD CURSOR is
SELECT
'UPDATE XXAFL_MON_FACTS_F SET TASK_WID =' | NVL (TO_CHAR (TASK_WID), 'NULL') |', EXECUTION_PLAN_WID =' | NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL').
', DETAILS_WID =' | NVL (TO_CHAR (DETAILS_WID), 'NULL') |', SOURCE_WID =' | NVL (TO_CHAR (SOURCE_WID), 'NULL') |', TARGET_WID = ' | NVL (TO_CHAR (TARGET_WID), 'NULL').
', RUN_STATUS_WID =' | NVL (TO_CHAR (RUN_STATUS_WID), 'NULL') |', SEQ_NUM =' | NVL (TO_CHAR (SEQ_NUM), 'NULL') |', NAME = "' | NVL (TO_CHAR (NAME), 'NULL').
"', NO_POSITION =" ' | NVL (TO_CHAR (INSTANCE_NUM), e ') | " ', INSTANCE_NAME = "' | NVL (TO_CHAR (INSTANCE_NAME), 'NULL').
"', TYPE_CD =" ' | NVL (TO_CHAR (TYPE_CD), e ') | " ', STATUS_CD = "' | NVL (TO_CHAR (STATUS_CD), e ') | " ', START_TS =' | Decode (START_TS, null, "to_date('''|| to_char (START_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
', END_TS =' | Decode (END_TS, null, "to_date('''|| to_char (END_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', DURATION = ' | NVL (TO_CHAR (DURATION), 'NULL') |', STATUS_DESC = "' | NVL (TO_CHAR (STATUS_DESC), 'NULL').
"', DBCONN_NAME =" ' | NVL (TO_CHAR (DBCONN_NAME), e ') | " ', SUCESS_ROWS =' | NVL (TO_CHAR (SUCESS_ROWS), 'NULL').
', FAILED_ROWS =' | NVL (TO_CHAR (FAILED_ROWS), 'NULL') |', ERROR_CODE = ' | NVL (TO_CHAR (ERROR_CODE), 'NULL') |', NUM_RETRIES =' | NVL (TO_CHAR (NUM_RETRIES), 'NULL').
', READ_THRUPUT =' | NVL (TO_CHAR (READ_THRUPUT), 'NULL') |', LAST_UPD = ' | Decode (LAST_UPD, null, "to_date('''|| to_char (LAST_UPD,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', RUN_STEP_WID = "' | NVL (TO_CHAR (RUN_STEP_WID), 'NULL').
"', W_INSERT_DT = ' | Decode (W_INSERT_DT, null, "to_date('''|| to_char (W_INSERT_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', W_UPDATE_DT = ' | Decode (W_UPDATE_DT, null, "to_date('''|| to_char (W_UPDATE_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
', START_DATE_WID =' | NVL (TO_CHAR (START_DATE_WID), 'NULL') |', END_DATE_WID = ' | NVL (TO_CHAR (END_DATE_WID), 'NULL') |', START_TIME =' |
NVL (TO_CHAR (START_TIME), 'NULL') |', END_TIME =' | NVL (TO_CHAR (END_TIME), 'NULL'). "WHERE INTEGRATION_ID ="' | INTEGRATION_ID | " « ; » AS a Column OF XXAFL_MON_FACTS_F;BEGIN
dbms_output.put_line (sysdate);
to record in a loop of the UPDdbms_output.put_line (record.col_name);
immediately run record.col_name;CNT: = cnt + 1;
If cnt > 1000
and then commit;
CNT: = 0;
dbms_output.put_line (sysdate);
end if;
end loop;
dbms_output.put_line (sysdate);
END; -Procedure
Error report-
ORA-06550: line 2, column 6:
PLS-00103: encountered the symbol "=" when expecting one of the following conditions:constant exception < an ID >
< a between double quote delimited identifiers > double long Ref table
char time timestamp interval date binary national character
NCHAR
The symbol '< identifier >' has been substituted for "=" continue.
06550 00000 - "line %s, column % s:\n%s".
* Cause: Usually a PL/SQL compilation error.
* Action:
Error starting line: 1 at the controls.
PROCEDURE FACT_UPDATE
Error report-
Unknown commandError from line: 2 in command.
IS
Error report-
Unknown command
Error from line: 3 in command.
DECLARE
CNT NUMBER: = 0;UPD CURSOR is
SELECT
'UPDATE XXAFL_MON_FACTS_F SET TASK_WID =' | NVL (TO_CHAR (TASK_WID), 'NULL') |', EXECUTION_PLAN_WID =' | NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL').
', DETAILS_WID =' | NVL (TO_CHAR (DETAILS_WID), 'NULL') |', SOURCE_WID =' | NVL (TO_CHAR (SOURCE_WID), 'NULL') |', TARGET_WID = ' | NVL (TO_CHAR (TARGET_WID), 'NULL').
', RUN_STATUS_WID =' | NVL (TO_CHAR (RUN_STATUS_WID), 'NULL') |', SEQ_NUM =' | NVL (TO_CHAR (SEQ_NUM), 'NULL') |', NAME = "' | NVL (TO_CHAR (NAME), 'NULL').
"', NO_POSITION =" ' | NVL (TO_CHAR (INSTANCE_NUM), e ') | " ', INSTANCE_NAME = "' | NVL (TO_CHAR (INSTANCE_NAME), 'NULL').
"', TYPE_CD =" ' | NVL (TO_CHAR (TYPE_CD), e ') | " ', STATUS_CD = "' | NVL (TO_CHAR (STATUS_CD), e ') | " ', START_TS =' | Decode (START_TS, null, "to_date('''|| to_char (START_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
', END_TS =' | Decode (END_TS, null, "to_date('''|| to_char (END_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', DURATION = ' | NVL (TO_CHAR (DURATION), 'NULL') |', STATUS_DESC = "' | NVL (TO_CHAR (STATUS_DESC), 'NULL').
"', DBCONN_NAME =" ' | NVL (TO_CHAR (DBCONN_NAME), e ') | " ', SUCESS_ROWS =' | NVL (TO_CHAR (SUCESS_ROWS), 'NULL').
', FAILED_ROWS =' | NVL (TO_CHAR (FAILED_ROWS), 'NULL') |', ERROR_CODE = ' | NVL (TO_CHAR (ERROR_CODE), 'NULL') |', NUM_RETRIES =' | NVL (TO_CHAR (NUM_RETRIES), 'NULL').
', READ_THRUPUT =' | NVL (TO_CHAR (READ_THRUPUT), 'NULL') |', LAST_UPD = ' | Decode (LAST_UPD, null, "to_date('''|| to_char (LAST_UPD,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', RUN_STEP_WID = "' | NVL (TO_CHAR (RUN_STEP_WID), 'NULL').
"', W_INSERT_DT = ' | Decode (W_INSERT_DT, null, "to_date('''|| to_char (W_INSERT_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', W_UPDATE_DT = ' | Decode (W_UPDATE_DT, null, "to_date('''|| to_char (W_UPDATE_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
', START_DATE_WID =' | NVL (TO_CHAR (START_DATE_WID), 'NULL') |', END_DATE_WID = ' | NVL (TO_CHAR (END_DATE_WID), 'NULL') |', START_TIME =' |
NVL (TO_CHAR (START_TIME), 'NULL') |', END_TIME =' | NVL (TO_CHAR (END_TIME), 'NULL'). "WHERE INTEGRATION_ID ="' | INTEGRATION_ID | " « ; » AS a Column OF XXAFL_MON_FACTS_F;BEGIN
dbms_output.put_line (sysdate);
to record in a loop of the UPDdbms_output.put_line (record.col_name);
immediately run record.col_name;CNT: = cnt + 1;
If cnt > 1000
and then commit;
CNT: = 0;
dbms_output.put_line (sysdate);
end if;
end loop;
dbms_output.put_line (sysdate);
END; -Procedure
Error report-
ORA-00911: invalid character
ORA-06512: at line 24
00911 00000 - "invalid character".
* Cause: identifiers may not start with any character other than ASCII
letters and numbers. $# _ are allowed after the first
character. May contain identifiers surrounded by doublequotes
any character other than a quotation mark. Other quotes
(q' #... #') cannot use spaces, tabs or as carriage returns
delimiters. For all other settings, consult the SQL language
Reference manual.
* Action:In addition to the other reviews, and apart from the quality of the code, you should really (really!) learn how to format your code for better "read-ability. This will also contribute to a better quality. If you are unsure how to format, then use a development as a SQL developer tool. It will not format "as you type", but a frequent use of the shortened format keyboard (Ctrl + F7 in SQL Dev) will keep your code readable and coherent.
And then you learn to keep this format when you post on the forum.
Like this:
PROCEDURE FACT_UPDATE
IS
DECLARE
CNT NUMBER: = 0;
CURSOR UPD
IS
SELECT "UPDATE XXAFL_MON_FACTS_F SET TASK_WID ='"
|| NVL (TO_CHAR (TASK_WID), 'NULL')
|', EXECUTION_PLAN_WID ='
|| NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL')
|| ', DETAILS_WID ='
|| NVL (TO_CHAR (DETAILS_WID), 'NULL')
|', SOURCE_WID ='
|| NVL (TO_CHAR (SOURCE_WID), 'NULL')
|', TARGET_WID = '
|| NVL (TO_CHAR (TARGET_WID), 'NULL')
|| ', RUN_STATUS_WID ='
|| NVL (TO_CHAR (RUN_STATUS_WID), 'NULL')
|', SEQ_NUM ='
|| NVL (TO_CHAR (SEQ_NUM), 'NULL')
|', NAME = "'
|| NVL (TO_CHAR (NAME), 'NULL')
|| ' ', NO_POSITION = "'
|| NVL (TO_CHAR (INSTANCE_NUM), 'NULL')
||'' ', INSTANCE_NAME = "'
|| NVL (TO_CHAR (INSTANCE_NAME), 'NULL')
|| ' ', TYPE_CD = "'
|| NVL (TO_CHAR (TYPE_CD), 'NULL')
||'' ', STATUS_CD = "'
|| NVL (TO_CHAR (STATUS_CD), 'NULL')
||'' ', START_TS ='
|| DECODE (START_TS, ",' to_date(''e))
|| To_char (START_TS, "mm/dd/yyyy hh)
||'' ((', "dd/mm/yyyy hh")')
|| ', END_TS ='
|| DECODE (END_TS, ",' to_date(''e))
|| To_char (END_TS, "mm/dd/yyyy hh)
||'' ((', "dd/mm/yyyy hh")')
|', DURATION = '
|| NVL (TO_CHAR (DURATION), 'NULL')
|', STATUS_DESC = "'
|| NVL (TO_CHAR (STATUS_DESC), 'NULL')
|| ' ', DBCONN_NAME = "'
|| NVL (TO_CHAR (DBCONN_NAME), 'NULL')
||'' ', SUCESS_ROWS ='
|| NVL (TO_CHAR (SUCESS_ROWS), 'NULL')
|| ', FAILED_ROWS ='
|| NVL (TO_CHAR (FAILED_ROWS), 'NULL')
|', ERROR_CODE = '
|| NVL (TO_CHAR (ERROR_CODE), 'NULL')
|', NUM_RETRIES ='
|| NVL (TO_CHAR (NUM_RETRIES), 'NULL')
|| ', READ_THRUPUT ='
|| NVL (TO_CHAR (READ_THRUPUT), 'NULL')
|', LAST_UPD = '
|| DECODE (LAST_UPD, ",' to_date(''e))
|| To_char (LAST_UPD, "mm/dd/yyyy hh)
||'' ((', "dd/mm/yyyy hh")')
|', RUN_STEP_WID = "'
|| NVL (TO_CHAR (RUN_STEP_WID), 'NULL')
|| ' ', W_INSERT_DT = '
|| DECODE (W_INSERT_DT, ",' to_date(''e))
|| To_char (W_INSERT_DT, "mm/dd/yyyy hh)
||'' ((', "dd/mm/yyyy hh")')
|', W_UPDATE_DT = '
|| DECODE (W_UPDATE_DT, ",' to_date(''e))
|| To_char (W_UPDATE_DT, "mm/dd/yyyy hh)
||'' ((', "dd/mm/yyyy hh")')
|| ', START_DATE_WID ='
|| NVL (TO_CHAR (START_DATE_WID), 'NULL')
|', END_DATE_WID = '
|| NVL (TO_CHAR (END_DATE_WID), 'NULL')
|', START_TIME ='
|| NVL (TO_CHAR (START_TIME), 'NULL')
|', END_TIME ='
|| NVL (TO_CHAR (END_TIME), 'NULL')
||' WHERE INTEGRATION_ID = "'
|| INTEGRATION_ID
||''';' AS Column
OF XXAFL_MON_FACTS_F;
BEGIN
dbms_output.put_line (sysdate);
FOR registration in UPD
LOOP
dbms_output.put_line (record.col_name);
EXECUTE immediate record.col_name;
CNT: = cnt + 1;
IF cnt > 1000 THEN
COMMIT;
CNT: = 0;
dbms_output.put_line (sysdate);
END IF;
END LOOP;
dbms_output.put_line (sysdate);
END; -Procedure
-
BlackBerry Smartphones cannot load games via the media manager-
Hello
I hope someone can shed some light on why I can't load any 8700 games on my Blackberry. I use the loader application media manager and every time it comes up with the following message:
"The following modules can not be loaded because their digitalsignatures were not valid."
The .cod files and my 8700v isn't about RIM 4.2
Any help much appreciated.
Sorted! -Read the thread elsewhere in the Forum about unlocking BES / IT restrictions - large frequently asked questions, worked a treat, thx
Maybe you are looking for
-
Cannot read the Camileo Pro HD files
Hello! It's really frustrating. I filled out my SD card on my Camileo Pro and have fixed the camera my PC to extract the files. Windows guard saying new hardware found but will not recognize the device and keeps wanting to search for drivers. I was o
-
Satellite T130 - 11 H Factory Reset - problems later
I factory reset my Toshiba laptop and now I have problems. When I start the laptop I constantly get the message "prepare your pc for first use" and it starts, Toshiba menu starts too and keeps telling me it's to complete the installation. Randomly, h
-
Currently using iMac 2007 Yosemite 10.10.5 with 2 GB 667 mhz ddr 2 with 2.4 ghz core 2 duo with intel that I should upg at El Capitan. Very slow system. This improvement will speed up?
-
Hello. I would like to install a gtx 580 zotax or zotax gtx 460 on my PC. ..HP p6 2021itCard mother foxconn h61 2abfI7 2600 (sandy bridge), Lga 11558 GB ramIn fact gt 545/3 gbPU 2 GTX work on my motherboard?Thank you
-
Here a process monitoring app office charge before explorer.exe
Hello I was asked to find a way to load an office process monitoring process before explorer.exe Our monitoring application takes a few minutes to load, and we would like to speed up the process. It was suggested that replace us explorer.exe shell by