Re: how to redirect the output from studio to a file
the thing is i have large amount of output(crapy uni project), it's kind of hard to read them in IDE output window, and i am too lazy to use fwrite to a file. in terminal it's just "output > filename", but doesn't work in IDE. anyone knows?
The Arguments property will take a "> file".
This property can be set in several places.
In studio 10/11:
- Debug->LoadProgram
- Debug->LoadRecent->EditLoadCommandList
After you've loaded a program...
- Debug->DbxConfigure
In studio 12:
Project (ctx menu)->Properties->Running(Category)
Similar Messages
-
Does anyone know how to convert the output from the standard report to xml?
Does anyone know how to convert the output from the standard SAP report to xml?
since it a standard report which you cannot modify you can only do the following.
submit report exporting list to memory
then
list from memory and then
use the returned itab along with CALL TRNSFORMATION key word to convert to xml.
but this only going to place the whole list content (including data and formating lines,etc) into a xml element and not the actual data alone in the list . -
How to upload the data from excel(3 tabs) file to sap environment
Hi all,
This is Mahesh.
how to upload the data from excel(3 tabs) file to sap environment (internal tables) while doing bdc.Hi,
The FM 'ALSM_EXCEL_TO_INTERNAL_TABLE' makes it possible to load a worksheet into an internal table in ABAP.
However, if you want to get the data from several worksheets, I think you are stuck with OLE access to your Excel Workbook...
You can find a solution for 2 worksheets in this post :
TO UPLOAD DATA FROM 2 EXCEL SHEETS INTO TWO INTERNAL TABLES
I think you can easily modify it to handle any number of worksheets.
Hope it helps !
Best regards,
Guillaume -
How to read the output from 'tlist entersq'
Hi
Where can I find information on interpreting the output from 'tlist entersq' ?
We have a box that seems to go into a lock, no communication through network, nor terminal ttya.
I did an abort on the panel and sync to force a memory dump
I'm using scat to investigate the result.
SolarisCAT(vmcore.0)> thread summary
reference clock = panic_lbolt: 0x114c6f9
11 threads ran since 1 second before current tick (11 user, 0 kernel)
11 threads ran since 1 minute before current tick (11 user, 0 kernel)
63 TS_RUN threads (50 user, 13 kernel)
2 TS_STOPPED threads (0 user, 2 kernel)
10 TS_FREE threads (0 user, 10 kernel)
0 !TS_LOAD (swapped) threads
0 threads trying to get a mutex
0 threads trying to get an rwlock
128 threads waiting for a condition variable (89 user, 39 kernel)
1 threads sleeping on a semaphore (0 user, 1 kernel)
12 threads sleeping on a user-level sobj (12 user, 0 kernel)
7 threads sleeping on a shuttle (door) (7 user, 0 kernel)
0 threads in biowait()
1* threads in entersq() (1 user, 0 kernel)
63 threads in dispatch queues (50 user, 13 kernel)
225 total threads in allthreads list (159 user, 66 kernel)
0 thread_reapcnt
5 lwp_reapcnt
230 nthread
SolarisCAT(vmcore.0)> tlist entersq
thread pri pctcpu idle pid wchan command
0x300027dd7a0 142 0.024 1m41.83s 1684 0x300007fff18 /sz/tcp/bin/tig_tcp.bin
1 thread in entersq() found.
threads in entersq() by syncq:
1 thread: 0x300027dd7a0
syncq @ 0x300007ffee0
sq_count: 0 sq_head: 0x30001de6e80 sq_tail: 0x30001de6e80
sq_evhead: 0xcff010000 sq_evtail: 0x100000000cafe sq_nqueues: 0
sq_needexcl: 0 sq_private: 0x3000155dd18 sq_next: 0xbaddcafe
sq_pri: 276
sq_occount: 0
sq_flags: 0x200 ()
sq_type: 0x0
sq_svcflags: 0x0
sq_lock @ 0x300007ffee0:
adaptive mutex: owner: 0x0 waiters: false
per-module syncq for ip
streamtab @ 0x14ad6b0
qinit @ 0x14ad570
modinfo @ 0x14ad540
queues:1 sq_msgs:1 sq_mblks:36 sq_alloc:13247273932581836904
SolarisCAT(vmcore.0)> thread 0x30001de6e80
==== user thread: 0x30001de6e80 address translation failed for pid: 32 bytes @ 0x452e0d0a2a2a2a20
pid: 0 PIL: 3 ====
cmd:
t_wchan: 0x30001dd5640
t_stk: 0x1263bfc sp: 0x0 t_stkbase: 0x30002aa3ec0
t_pri: 0 pctcpu: 0.000036 t_lwp: 0x30001de0d80 machpcb: 0x30001dd4c08
t_procp: 0x30002df2900 p_as: 0x30002df2978 hat: 0x6420373031206368address translation failed for hat_3: 80 bytes @ 0x6420373031206368
cnum: 0x0
address translation failed for hat_3: 80 bytes @ 0x6420373031206368
size: 4984936174853958176 rss: 0
bound cpuid: 768 bound psrset: 768 last cpuid: 0
idle: -17371523 ticks (190888 days 10 hours 34 minutes 34.26 seconds)
start: Wed Jul 10 21:34:52 6497
age: -3297429488912 seconds (38164693 days 3 hours 48 minutes 32 seconds)
swapped out: 3298566244800 (190888 days 4 hours 48 minutes 49.63 seconds later)
interrupted (pinned) thread: 0x30001de6ef8
tstate: unknown state
tflg: T_INTR_THREAD - thread is an interrupt thread
T_WOULDBLOCK - for lockfs
T_DONTBLOCK - for lockfs
T_DONTPEND - for lockfs
WAITCVSEM - waiting for a lwp_cv or lwp_sema on sleepq
tpflg: TP_CHKPT - thread is being stopped via CPR checkpoint
TP_PRVSTOP - thread is virtually stopped via /proc
TP_MSACCT - collect micro-state accounting information
TP_STOPPING - thread is executing stop()
tsched: none set
pflag: SLOAD - in core
SLOCK - process cannot be swapped
SPREXEC - process is in exec() (a flag for /proc)
SSCONT - SIGCONT has been posted to the process
SBPTADJ - adjust pc on breakpoint trap (/proc)
SUGID - process was result of set[ug]id exec
SJCTL - SIGCLD sent when children stop/continue
SNOWAIT - children never become zombies
SVFORK - process resulted from vfork
SVFWAIT - parent of vfork waiting for child to exec
EXITLWPS - have lwps exit within the process
SWAITSIG - SIGWAITING sent when all lwps block
HOLDFORK1 - hold lwps in place (not cloning)
SMSACCT - process is keeping micro-state accounting
pc: 0x30003e63600 0x30003e63600: illegaltrap 0x00000000
-- no stack --Hello ejp,
First of all i thank you for the reply.
I explain the process which i am doing in side the thread.
After connecting to the remote machine, it asks another password.
so i read the output after connecting. if it equals "password:", then write the 2nd password. then i read the output. it will be like "system>" . if this prompt comes like this, then i write the super user name and super user password. then the prompt will be like "system#". then i write the command which i need to execute and read the output whether the command is success or not.
So after every output read, i interrupt the thread using interrupt() method. its working fine if i execute via GUI ie, click the button. But its not working when i scheduled this job in a scheduler ie, it will be executed when the time elapsed.
Give an idea to fix this bug please.
rgds
tskarthikeyan -
How to redirect the output display on Ultra 5 box.
Hello,
Good day to you.
I have issues with redirecting display output to my console server (which is configured with cyclades switch) on a newly installed solaris 10, Ultra 5 box.
I could access the output display on the monitor when I connect it directly to the serial port. But I also have my parallel port connected to cyclades switch which is primarily being used for accessing multiple servers thro' one single console server.
When I try to access my ultra 5 box thro' console server, the display not getting redirected over there..I did checked the port from cyclades switch front, it did work well with other machines.
Looks like some work needs to be done at Ultra 5 box level so that the parallel port can send output signals to the respective port on cyclades switch and consequently to the console server.
Any thoughts ??
Thanks.Hi,
Good day to you.
Apologize for quoting "Parallel" port. It is a in-built 25pin serial connector placed next to regular 15 pin serial port.
Just to make a point here, this 25 pin serial connector has an external converter attached with other side having RJ45 jack.
CAT5 cable connected between switch port to this RJ45 jack.
I did tested this converter with another machine and could able to access the display on my console server. So it seems to be the connectivity from serial port to switch port works fine.
Adding to that, this ultra 5 box with the current connectivity set up was working fine until I rebuild this machine. I was very well accessing this box thro my console server. There was no changes done except rebuilding the operating system.
I think some work needs to be done at the ultra 5 box level to get this 25pin serial connector to act.
Thanks. -
How to redirect CELLCLI output to text file
Hi,
I would like to redicrect the output of the cellcli command to a text file .
For example , how to redirect the output of this command to a text file on /tmp
CellCLI> list metrichistory where objectType = 'CELL' -
and name = 'CL_TEMP'Thankscellcli has spooling capabilities similar to sqlplus:
CellCLI> help spool
Usage: SPO[OL] [<filename> [ CRE[ATE] | REP[LACE] | APP[END]] | OFF ]
Purpose: SPOOL <filename>: Direct the results to the file <filename>.
SPOOL OFF: Turn off the spooling.
SPOOL: Check the current spooling status.
Arguments:
<filename>: The filename where the results will be output.
Options:
[APPEND]: If the filename already exists, the following output will
be appended to the file. Without this option, the existing file
contents will be replaced.
[CREATE]: If the filename already exists, an error is reported.
[REPLACE]: If the filename already exists, the contents will be
replaced. This is the default, when no option is provided.
Examples:
spool myfile
spool myfile append
spool off
spoolBut if you are trying to script it, it would be easier to just run it command line:
# cellcli -e "list metrichistory where objectType = 'CELL' and name = 'CL_TEMP'" > /tmp/CL_TEMP.txtAlso look into dcli which allows you to run cellcli commands on one or more cells from a compute node.
Good luck. -
Redirect the output of SQL*Plus to the file
Hi all,
I have the following command to run:
sqlplus username/password @myfile.sql
I don't know how to redirect the output to the file.
Also in the script myfile.sql I have the defined variable, &VP and
How can I substitute this variable(&VP) at the run time.
Thanks,
JPAssumed you like to replace your defined variable VP by number 4. SInce it is posintional parameter,instead of wrinting &VP, write
VP:=&1
sqlplus>spool redirect.txt
sqlplus>@myfile.sql 4
sqlplus>spool off -
Sun ONE Studio 4 aka Forte: How to set the output path for classes ?
Help !
Beginner's question:
Sun ONE Studio 4 aka Forte:
How to set the output path for classes ?
As default, the class files are created in the same directory as the
sources.
In opposite, both JBuilder and Together support that there is a tree
with the sources and another tree with the classes.
The first answer I got was "not possible with Forte, but just if you write your own "ANT Build script" !
a) Please point me to a ready-to-use ANT script for this purpose, if such is available
b) Is using ANT instead of the MAKE as comfortable ? Besides the separation of sourcecode and classes, I would like to keep everything else to be the same, i.e. I don�t want to edit the ANT file if I enlarge the project by directories or files.
Tia
Sincerely
RolfYou can set S1S's options to place newly created .class files in a specific location.
Identify the compiler that is being used - Open the S1S's Tools/Options window, expand Editing and select Java Sources. Note the Default Compiler value. (If it's one if the Ant options, you use Ant to specify this option, not S1S.)
Open the S1S's Tools/Options window, expand Building/Compiler Types and select the appropriate compiler.
The Properties tab of the compiler has the property Target, which sets the filesystem where the compiler output is directed. If you choose <not set>, the .class files are written to their source directory.
When you set the Target, your change affects all classes that use this compiler.
Very few options can't be set in S1S; the challenge is finding out where they're set! -
How to redirect console output while starting server from within IDE
Hello, i am using Weblogic Workshop IDE. When I start the server, a new cmd shell is launched and the jvm output is displayed in this cmd shell window. How can I redirect this output to show up within the IDE (for instance in the Console view)?
Problem is that when an error occurs, the cmd window disappears and I cannot tell what the error was.
Surely there is a way to do this as other IDEs (JBuilder, Rational etc.) allow this.
Thanks:
-SamHi Sam,
Unfortunately, this feature does not exist in Workshop 9.2
Regarding your question about redirecting the output, the logs are saved under the domain directory.
You could also refer to the following section for additional info on redirecting the output to multiple destinations.
http://e-docs.bea.com/wls/docs90/ConsoleHelp/taskhelp/logging/RedirectJVMOutput.html
Hope this helps.
cheers
Raj -
How to copy the output of procedure to a view or table
Hi...
I created a procedure using Hana Studio and it returns the multiple rows as output.
My query is , how to copy the output to a table or view when it is called like this "cal _SYS_BIC.procedureName "
Please go through the following image:
How to copy the output content to a table or view....
Thank u...Hi Mohan,
The logic is like, you can attach a view(so called column view) to any procedure which returns a result set. SO, instead of calling the procedure using CALL statement, you can simply query the VIEW to get the result set. Internally the procedure will be executed.
Have a look here :
http://help.sap.com/hana/SAP_HANA_SQL_Script_Reference_en.pdf
Eg :
You create a procedure using a result view ProcView to return its results.
CREATE PROCEDURE ProcWithResultView(IN id INT, OUT o1 CUSTOMER) LANGUAGE SQLSCRIPT
READS SQL DATA WITH RESULT VIEW ProcView
AS
BEGIN
o1 = SELECT * FROM CUSTOMER WHERE CUST_ID = :id;
END;
You call this procedure from an SQL statement as follows.
SELECT * FROM ProcView WITH PARAMETERS ('placeholder' = ('$$id$$', '5'));
Hope this helps you to solve the issue
Sreehari -
How to bring the data from application server to presentation server
hi,
i have one problem,i have written the program which will open the files in the application server when we run the program in the background(sm37),the same data from application server i want to bring into presentation server in the format of (.csv),how to bring the data from application to presentation server can any body help me on this topic.folowing is the code .
*& Report ZPFA_HIER_LOAD
REPORT ZFPA_HIER_LOAD.
*---- Declaration of Oracle connectioN
DATA con_name LIKE dbcon-con_name VALUE 'COMSHARE'.
DATA: MFL1(9),MFL2(5),MFL3(9),MFL4(2),MFL5(8) TYPE c.
DATA : mfilename type string.
data: begin of matab1 occurs 0,
MFL1(9) TYPE C,
MFL2(5) TYPE C,
MFL3(9) TYPE C,
MFL4(2) TYPE C,
MFL5(8) TYPE C ,
end of matab1 .
data: setid(8) type c.
data: begin of source occurs 0,
setid(8) type c,
end of source.
*PARAMETERS : p_pfile LIKE filename-FILEEXTERN.
*PARAMETERS : m_bsenty(8). " type c obligatory.
*mfilename = P_PFILE.
EXEC SQL.
SET CONNECTION :con_name
ENDEXEC.
EXEC SQL.
CONNECT TO :con_name
ENDEXEC.
EXEC SQL PERFORMING get_source.
SELECT set_id FROM UNIT_SET INTO
:setid
ORDER BY SET_ID
ENDEXEC.
start-of-selection.
LOOP AT SOURCE.
REFRESH matab1. CLEAR matab1.
EXEC SQL PERFORMING evaluate.
SELECT TO_CHAR(MEM_ID),TRIM(TO_CHAR(MEM_PID)) FROM UNIT_TREE INTO :MFL1,
:MFL5
where set_id = :SOURCE-SETID ORDER BY MEM_ID
ENDEXEC.
if SOURCE-SETID = '80000000'.
mfilename = '/tmp/aesorg'.
elseif SOURCE-SETID = '80000006'.
mfilename = '/tmp/Consolidation_Manager'.
elseif SOURCE-SETID = '80000010'.
mfilename = '/tmp/10org'.
elseif SOURCE-SETID = '80000012'.
mfilename = '/tmp/20org'.
elseif SOURCE-SETID = '80000018'.
mfilename = '/tmp/30org'.
elseif SOURCE-SETID = '80000025'.
mfilename = '/tmp/40org'.
Endif.
mfilename = '/usr/test.dat'.
************************This was i tried***********************
open dataset mfilename for output in text mode encoding default." IN
*TEXT MODE ENCODING DEFAULT.
if sy-subrc <> 0.
exit.
endif.
close dataset mfilename.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = MFILENAME
FILETYPE = 'ASC'
TABLES
data_tab = matab1
EXCEPTIONS
file_write_error = 1
invalid_type = 2
no_authority = 3
unknown_error = 4
OTHERS = 10.
loop at matab1 .
transfer matab1 to mfilename.
endloop.
clear matab1.
ENDLOOP.
loop at matab1 .
transfer matab1 to mfilename.
endloop.
close dataset mfilename.
MFL5 = '0'.
CLEAR MFL5.
FORM evaluate.
if MFL5 = -1.
MFL5 = ''.
ENDIF.
concatenate MFL1 ',' into MFL1.
concatenate MFL1 ',' into MFL3.
matab1-MFL1 = MFL1.
matab1-MFL2 = 'ZBUE,'.
matab1-MFL3 = MFL3.
matab1-MFL4 = ' ,'.
matab1-MFL5 = MFL5.
append matab1 .
CLEAR MFL1.
CLEAR MFL2.
CLEAR MFL3.
CLEAR MFL4.
CLEAR MFL5.
ENDFORM.
"evaluate
*& Form GET_SOURCE
text
FORM GET_SOURCE.
source-setid = setid.
append source.
clear source.
ENDFORM. "GET_SOURCEHi Rammohan,
You cannot use OPEN DATASET to transfer data from application server to presentation server.
You can do the following :
<b>Do 1st point in BACKGROUND</b>
1. Read the data file from application server into an internal table using OPEN DATASET
<b>Do 2nd point in Foreground</b>
2. Once you get the data into an internal table, then use FM GUI_DOWNLOAD to download it on presentation server
You cannot use the above 2 point together in Background because its not possible. Hence you need program it partially in background and partially in foreground.
Best regards,
Prashant -
How to use the Output clause for the updated statment
How to use the output clause for the below update stament,
DECLARE @MyTableVar table(
sname int NOT NULL)
update A set stat ='USED'
from (select top 1 * from #A
where stat='AVAILABLE' order by sno)A
Output inserted.sname
INTO @MyTableVar;
SELECT sname
FROM @MyTableVar;
Here am getting one error incorrect syntax near Output
i want to return the updated value from output clausesee
http://blogs.msdn.com/b/sqltips/archive/2005/06/13/output-clause.aspx
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
How to change the output as text format in Apps R12.1.3
Hi All,
Currently iam trying to modify the Java Concurrent Program (FDExtractAndFormatting) in Batch Payment Process. This Program is generated in text format in 11i APPS. Now we are upgrading to R12.1.3. In R12.1.3 output is coming as PDF format. Here my requirement is how to change the output as text format in R12.1.3 also.
Please do the needful and suggest me.
Regards,
Jagadeesh1. It is seeded java concurrent program. Some attributes are missing from 11i to R12. In 11i it is a text format.So i have to investgate on how to retrive those attributes in R12. What is the concurrent program name?
Have you tried to change the output and submit the request?
2. Once all are attributes are coming in PDF format. Client wants to open same output in text format as it is 11i (In R12 it is generated in PDF format).If the above does not help, please log a SR.
Thanks,
Hussein -
How to insert the data from XML to a table
Hi,
I'm using Oracle 10g Express Edition
I need help in How to insert the data from XML file into the table.
Below is the example i'm working on..
I have create ridb user with below mentioned privileges:
Account Status Locked Unlocked
Default Tablespace: USERS
Temporary Tablespace: TEMP
User Privileges :
Roles:
CONNECT
RESOURCE
Direct Grant System Privileges:
CREATE DATABASE LINK
CREATE MATERIALIZED VIEW
CREATE PROCEDURE
CREATE PUBLIC SYNONYM
CREATE ROLE
CREATE SEQUENCE
CREATE SYNONYM
CREATE TABLE
CREATE TRIGGER
CREATE TYPE
CREATE VIEW
& table is created TRIALZIPCODES below mentioned is the DDL:
CREATE TABLE TRIALZIPCODES
STATE_ABBR VARCHAR2(20) NOT NULL
, ZIP_CODE NUMBER(10, 0) NOT NULL
, ZIP_CODE_EXT VARCHAR2(20)
Below is the XML FILE: which is stored in C:\OracleProject Folder
File name: trial.xml
<?xml version="1.0" ?>
<metadata>
- <Zipcodes>
- <mappings Record="4">
<STATE_ABBREVIATION>CA</STATE_ABBREVIATION>
<ZIPCODE>94301</ZIPCODE>
</mappings>
- <mappings Record="5">
<STATE_ABBREVIATION>CO</STATE_ABBREVIATION>
<ZIPCODE>80323</ZIPCODE>
<ZIP_CODE_EXTN>9277</ZIP_CODE_EXTN>
</mappings>
</Zipcodes>
</metadata>
PL/SQL Procedure:which i'm trying to execute from SQLDeveloper
create or replace
PROCEDURE TRIAL AS
BEGIN
DECLARE
-- declare attributes
charString varchar2(80);
finalStr varchar2(4000) := null;
rowsp integer;
v_FileHandle UTL_FILE.FILE_TYPE;
l_context_handle dbms_xmlgen.ctxHandle;
insCtx DBMS_XMLStore.ctxType;
begin
-- DBMS_XMLGEN.setRowTag ( ctx IN ctxHandle, rowTag IN VARCHAR2);
-- DBMS_XMLGEN.setRowSetTag ( ctx IN ctxHandle, rowSetTag IN VARCHAR2);
-- the name of the table as specified in our DTD
DBMS_XMLGEN.SETROWSETTAG(l_context_handle,'zipcodes');
-- the name of the data set as specified in our DTD
DBMS_xmlgen.setRowTag(l_context_handle,'mappings');
-- for getting the output on the screen
dbms_output.enable(1000000);
-- open the XML document in read only mode
v_FileHandle := utl_file.fopen('c:/OracleProject','trial.xml', 'r');
loop
BEGIN
utl_file.get_line(v_FileHandle, charString);
exception
when no_data_found then
utl_file.fclose(v_FileHandle);
exit;
END;
dbms_output.put_line(charString);
if finalStr is not null then
finalStr := finalStr || charString;
else
finalStr := charString;
end if;
end loop;
-- for inserting the XML data into the table
insCtx := DBMS_XMLSTORE.NEWCONTEXT('RIDB.TRIALZIPCODES');
insCtx := DBMS_XMLSTORE.INSERTXML(insCtx, finalStr);
dbms_output.put_line('INSERT DONE '||TO_CHAR(rowsp));
DBMS_XMLStore.closeContext(insCtx);
END;
END TRIAL;
For the first time when i complied i got the errors as :
Procedure RIDB.PROCEDURE1@RIDB
Error(16,14): PLS-00201: identifier 'UTL_FILE' must be declared
Error(16,14): PL/SQL: Item ignored
Error(29,1): PLS-00320: the declaration of the type of this expression is incomplete or malformed
Error(29,1): PL/SQL: Statement ignored
Error(33,1): PL/SQL: Statement ignored
Error(33,19): PLS-00320: the declaration of the type of this expression is incomplete or malformed
Error(36,1): PL/SQL: Statement ignored
Error(36,17): PLS-00320: the declaration of the type of this expression is incomplete or malformed
So i logged in as sys & grant the permission to execute on UTL_FILE to ridb (user):
SQL Statement:
grant execute on utl_file to ridb
So, it got compiled successfully but when i execute it gives me error as:
Source does not have a runnable target.
What does this mean?
So I browse through forum & i got to know that i need to initial the UTL_FILE_DIR ="C:/OracleProject" in init.ora
So can i edit the init.ora with notepad.When i tried to do that it says permission denied
In my system it shows the init.ora file in path C:\oraclexe\app\oracle\product\10.2.0\server\config\scripts
but there is also other file initXETemp in the same path do i need to do the changes in it.
I have tried even editing the SPFILE as mentioned below:
C:\oraclexe\app\oracle\product\10.2.0\server\dbs\SPFILEEXE - I had edit this file using notepad & set the value of UTL_FILE_DIR ="C:/OracleProject". So next time when i restarted i'm unable to log on to the database.
So i had reinstall the software again.
Could you please let me know how to proceed..hi,
I have created the directory from sys database
CREATE or replace DIRECTORY XML_DIR2 AS 'C:\OracleProject';
& grant read,write access to the user
grant read,write on directory XML_DIR2 to RIDB;
& i had change the tag name in the xml file as shown below:
<?xml version = '1.0'?>
<metadata>
<Zipcodes>
<mappings Record="4">
<STABBRE>CA</STABBRE>
<ZIPCODE>94301</ZIPCODE>
</mappings>
<mappings Record="5">
<STABBRE>CO</STABBRE>
<ZIPCODE>80323</ZIPCODE>
<ZIPCODEEXT>9277</ZIPCODEEXT>
</mappings>
</Zipcodes>
</metadata>
TRIALZIPCODE table as shown below:
CREATE TABLE "RIDB"."TRIALZIPCODE"
( "STABBRE" VARCHAR2(20 BYTE),
"ZIPCODE" NUMBER(*,6) NOT NULL ENABLE,
"ZIPCODEEXT" NUMBER
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "USERS" ;
I have tried two methods as shown below:
Procedure 1:
create or replace
PROCEDURE TRIAL_V2 AS
BEGIN
DECLARE
-- declare attributes
charString varchar2(80);
finalStr varchar2(4000) := null;
rowsp integer;
v_FileHandle UTL_FILE.FILE_TYPE;
l_context_handle dbms_xmlgen.ctxHandle;
insCtx DBMS_XMLStore.ctxType;
cnt NUMBER;
xmldoc xmltype := xmltype( bfilename('XML_DIR2','trialxml.xml'), nls_charset_id('AL32UTF8') );
--XML_DIR VARCHAR2(40) := 'C:\\OracleProject';
BEGIN
insCtx := DBMS_XMLStore.newContext('DEV.TRIALZIPCODES');
DBMS_XMLStore.setUpdateColumn(insCtx, 'STABBRE');
DBMS_XMLStore.setUpdateColumn(insCtx, 'ZIPCODE');
DBMS_XMLStore.setUpdatecolumn(insCtx, 'ZIPCODEEXT');
DBMS_XMLStore.setRowTag(insCtx, 'mappings');
cnt := DBMS_XMLStore.insertXML(insCtx, xmldoc);
DBMS_XMLStore.closeContext(insCtx);
END;
Procedure 1 was compiled with out errors but when i execute i got the error as :
Source does not have a runnable target.
Procedure 2_
CREATE OR REPLACE PROCEDURE TRIAL_V3 AS
BEGIN
DECLARE
-- declare attributes
charString varchar2(80);
finalStr varchar2(4000) := null;
rowsp integer;
v_FileHandle UTL_FILE.FILE_TYPE;
l_context_handle dbms_xmlgen.ctxHandle;
insCtx DBMS_XMLStore.ctxType;
cnt NUMBER;
xmldoc xmltype := xmltype( bfilename('XML_DIR2','trialxml.xml'), nls_charset_id('AL32UTF8') );
--XML_DIR VARCHAR2(40) := 'C:\\OracleProject';
BEGIN
INSERT INTO trialzipcode (STABBRE, ZIPCODE, ZIPCODEEXT)
SELECT extractvalue(x.column_value, 'mappings/STABBRE'),
extractvalue(x.column_value, 'mappings/ZIPCODE'),
extractvalue(x.column_value, 'mappings/ZIPCODEEXT')
FROM TABLE(
XMLSequence(
EXTRACT(
xmltype( bfilename('XML_DIR2','trialxml.xml'), nls_charset_id('AL32UTF8') ),
'metadata/Zipcodes/mappings'
) x
END;
END TRIAL_V3;
Procedure 2 was complied without errors but when i execute i got the error as:
Connecting to the database RIDB.
ORA-22288: file or LOB operation FILEOPEN failed
The system cannot find the file specified.
ORA-06512: at "SYS.DBMS_LOB", line 523
ORA-06512: at "SYS.XMLTYPE", line 287
ORA-06512: at "RIDB.TRIAL_V3", line 12
ORA-06512: at line 2
Process exited.
Disconnecting from the database RIDB.
Could you please let me know how to proceed... -
Reading the output from a object running in the local machine.
Reading the output from a object running in the local machine.
By using a signed applet i am lunching a small application that returns an image object, how to read that without storing it in the hard disk.
Which means i need to read the image object return by the local application using applet or jsp .
i am using tomacat and an html page with an applet with it to lunch the application.You can write that image in a binary format using OutputStream for System.out and then read it in your applet.
Maybe you are looking for
-
How to design the URL?i know that the Google will take down the good URL.such as the staticize URL Google will like more..
-
I have been getting the error message "startup disk has no more memory for applications" or something along those lines. I have 4GB of RAM and a 1TB hard drive with 691GB left, so per the instructions on another thread I ran the "verify disk" process
-
Query Values are not updated.
Hello All, While refreshing the query on the cube 0IC_C03, i am not getting the correct values in the query, Cube 0IC_C03 values and query values are differ. when i Tested inthe RSRV test it shows "<b>Dimension key 398 missing in dimension table /BI
-
Why I cant use the MSN messenger in my mac?
I just downloaded the newest version about MSN messenger 5.0. But I cant sign in my msn messenger. I try many times,but it always popup one window says:"Sign in to Microsoft Messenger failed because the service is not available or you ma not be conne
-
ThinkPad USB Keyboard with TrackPoint (55Y9003) FRU
I'm trying to order a ThinkPad USB Keyboard with TrackPoint part no. 55Y9003 here in Bulgaria. But here they are selling only the European/Bulgarian version with a slighly differerent layout and part no. 55Y9009. I had this problem before with