How to move the data of a table from sqlplus to XML file
Hi,
Could you pls guide me how to move the data of a table from sqlplus to XML file.
i want to do it from sqlplus rather than toad.pls help
Thanks
Oh..I'm in 9i.
Try this out..and let me know.
DECLARE
CTX DBMS_XMLGEN.CTXHANDLE ;
XML CLOB ;
F UTL_FILE.FILE_TYPE;
XMLC VARCHAR2(32767);
BEGIN
CTX := DBMS_XMLGEN.NEWCONTEXT('SELECT * FROM department1 ') ;
XML := DBMS_XMLGEN.GETXML(CTX) ;
XMLC:=TO_CHAR(XML);
SHOW_ENVELOPE(XMLC);
F := UTL_FILE.FOPEN('ATTACH_FILES','DEPT.XML', 'W');
UTL_FILE.PUT_LINE(F,XML);
UTL_FILE.FCLOSE(F);
END ;
Good luck!!!
Bhagat
null
Similar Messages
-
How to delete the date and time column from a waveform spreasheet file
after acquiring a signal through the DAQ i am writing it in a spreadsheet. but for further post processing of the data the date and the time column are unneccessary. is there some way to format the file in labview so that those columns are removed. the DAQmx read gives as output a 1 d array. so i could not find a way to select only the Y column
If you are getting a 1D array from the DAQmx Read, then you don't have any date/time information to write and if you are using the Write to Spreadsheet File, there should be no way you can have the date/time information in the file. Whatever you hjave programed to put the date/time into the file, don't do it.
p.s. You may not think you need timing information but for a lot of post-processing, it is essential to have. If it's in the file, you can always ignore when you read it and if you later find out it's necessary, it will already be there. -
How to hide the data in particular table in oracle 10g
How to hide the data in particular table in oracle 10g
i want stepsIf its on Report u can always hide the column - Keyfigure or Selection - Display - Hide......y do u want to have it on the report if it is to be hided in the first place?
-
How to update the data in sqlserver table using procedure in biztalkserver
Hi,
Please can any one answer this below question
how to update the data in sqlserver table using procedure in biztalkserver
while am using executescalar,typedprocedure getting some warning
Warning:The adapter failed to transmit message going to send port "SendtoSql1" with URL "mssql://nal126//MU_Stage2?". It will be retransmitted after the retry interval specified for this Send Port. Details
Please send me asap....
Thanks...Hi Messip,
A detailed error would have helped us to answer you more appropriately but
You can follow the post which has step by step instructions, to understand how to use Stored Procedure:
http://tech-findings.blogspot.in/2013/07/insert-records-in-sql-server-using-wcf.html
Maheshkumar
S Tiwari|User
Page|Blog|BizTalk
2013: Inserting RawXML (Whole Incoming XML Message) in SQL database -
Need a document about how to move the fact and dimension table's to different server's
Hello Experts,
I need a detailed doc on how to move the fact and dimension tables to different server's.Please help me out from this
Thanks in advance....You still haven't told anyone what products besides Essbase you are using, without which this is an impossible question to answer.
https://forums.oracle.com/thread/2585515
https://forums.oracle.com/thread/2585171
Are you connecting to these tables from Essbase with a load rule / ODBC? Using Studio? Using Integration Services? Any Drill-Through reporting set up?
This may sound harsh, but if you truly don't know how to answer any of these questions you should probably not be anywhere near this task... -
How to set the data fields column wide at sqlplus
Dear Sir/Madam
I would like to know how to set the data fields column wide at sqlplus
Thanks
Francissee
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch6.htm#sthref1131
and the FORMAT clause of the COLUMN command in
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12013.htm#BACHCABF -
How to delete the data in a table using function
hi all,
i need to delete the data in a table using four parameters in a function,
the parameters are passed through shell script.
How to write the function
Thanks>
But the only thing is that such function cannot be used in SQL.
>
Perhaps you weren't including the use of autonomous transactions?
CREATE OR REPLACE FUNCTION remove_emp (employee_id NUMBER) RETURN NUMBER AS
PRAGMA AUTONOMOUS_TRANSACTION;
tot_emps NUMBER;
BEGIN
SELECT COUNT(*) INTO TOT_EMPS FROM EMP3;
DELETE FROM emp3
WHERE empno = employee_id;
COMMIT;
tot_emps := tot_emps - 1;
RETURN TOT_EMPS;
END;
SQL> SELECT REMOVE_EMP(7499) FROM DUAL;
REMOVE_EMP(7499)
12
SQL> SELECT REMOVE_EMP(7521) FROM DUAL;
REMOVE_EMP(7521)
11
SQL> SELECT REMOVE_EMP(7566) FROM DUAL;
REMOVE_EMP(7566)
10
SQL> -
How to maintain the data into database table
Hi,
experts,
how to maintain the data into database tableThere are several ways to maintain data in the database
1. Use table maintanance generator . You can create this using SE11 and data can be edited through SM30.
2. Loginto SE11 with the specified table and check the ATTRIBUTES tab. There you can set some parameters for maintaining the database. When you set Maintain database, you edit the data thorugh SE11 it self
3. Through Se16 as well.
4. A small abap program can do the above task as well.
Thanks,
Raj
Edited by: Rajanya Kolavennu on Feb 5, 2008 8:33 PM -
How to Update the data in R/3 From BW
Hi All ,
I Need some suggestion . i want to update the data of MARC table in R/3 from BW . Here data goes from BW to R/3 . so How to do this ? . There are no standard BAPI's in BW for this .
Thanks
Prithvi.Hi,
The scenario you are explaining is little opposite to what happens generally. Are you sure, you want to update R/3 from BW?
If you have to update MARC table that means you have to extend the material for different plants. Try using BAPI_MATERIAL_SAVE_DATA.
Regards,
Ravi
Note : Please mark all the helpful answers -
Insert the data in sap tables from C SHARP application
Hi All,
I want to save some data in sap table from my CSharp(DOTNET) windows application.I tried with the help of SAP.Net Connector but that connector is not been supported visual studio 2005 or i not have visual studio 2003 .Soo plz any one can help how i can do this .
If any one have a idea then plz give me some example also how we did.
thanks
regards
sandeep DabralYou have to use SAP .NET connetor to make interface with SAP. This is better way of doing interface between .NET and SAP.
You create web service (wsdl) in .NET 2003 and try to use that in .NET 2005.
You're getting the two technologies confused ......
.Net Connector is used for RFC-type interfaces. It calls Bapi's directly. Web services are not involved for this type of interface.
WSDL files are used to generate proxies for the .Net client to call Web Services (typically web-enabled Bapi's). This type of interface uses SOAP protocol not RFC and does not use the .Net Connector. Enterprise Web Services may be discovered using the .Net Enterprise Service Explorer, which is a different component from the .Net Connector.
Regards,
D. -
How to extract the data into Excel / PDF from SAP
Hi,
We have spool number of a report output.
We want to extract the data into Excel / PDF from SAP directly...
Plz guide...Hi ,
Please check this [Thread|HOW TO DOWNLOAD SAP OUTPUT TO EXCEL FILE;. Hope your problem will be solved.
You can check [this also.|http://wiki.sdn.sap.com/wiki/display/sandbox/ToConvertSpoolDataintoPDFandExcelFormatandSenditinto+Mail]
Thanks,
Abhijit -
How to insert the data system created table throuch RFC
How can i Insert any data system created table like MARC T100w .... throuh RFC.
I created Funstion module.
MY Email Address : [email protected]
[email protected]Hello Chandan
It is pure madness to update or modify tables like MARC or T100W directly, whether on remote systems or locally.
If you need to update or modify such tables on remote system search for the appropriate <b>BAPI </b>(e.g. in case of MARC use BAPI_MATERIAL_SAVEDATA).
Regards
Uwe -
REG:How to move the data from one screen to another
Hi Gurus,
My requirement is .....
in the view1 we have the communication data
with fileds pernr voice extension, and
the display button ...
when the display button is pressed we have to get the fields
pernr ,voice extension,mail, fields on the screen as pop up window for the selected pernr on the view1 , the pop up window contains a update button ,once pressed changing the field value ,it should be updated in the infotype 0105 with the same updated details
Thanks Regards
SumanHi Suman,
Try going through this [tutorial |http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm]if you have any doubts regarding sharing your context data among different views. This tutorial also explains with step-by-step snapshots about how you can pass data in between your MAIN view & a popup window.
Regards,
Uday -
How to read the date of ZL table in schema
Dear all,
I want to read the record of the ZL table,and I wanted to read the date of every record in ZL table, and then choose which wage type should be used.
Thank you.Hi Simon,
You need to write a custom function.
Please refer to the following wiki of mine:
http://wiki.sdn.sap.com/wiki/display/ERPHCM/CreateaCustomPayrollFunctionUpdatingZL+Table
Regards,
Dilek -
How to updated the data into Database table
Hi Guy's,
Please help me Using Tabstrip control how to updated the related infotype records into related database table.
Thanks and Regards,
Sai.Hi Guy's,
Please help me Using Tabstrip control how to updated the related infotype records into related database table.
Thanks and Regards,
Sai.
Maybe you are looking for
-
I erased my hard drive and now my Macbook pro won't boot
I bought a new macbook pro the other day, so I decided to erase the hard drive on my 2010 Macbook pro and reinstall my OS cleanly. I erased the hard drive and tried an internet recovery. It downloaded the recovery and would not boot. Tried resetting
-
Hard Drive Showing up with Time Machine Icon
I have two hard drives in my Mac Pro. I use one as the time machine backup drive. When I set that one up it changed the icon to the Time Machine icon. Today when I logged into my computer my normal drive changed from the regular hard drive icon to th
-
Installing JDBC, Oracle, PI 7
I am configuring a JDBC adapter (sender) in SAP PI 7, against a Oracle 10g database. My configuration is like this: JDBC Driver: oracle.jdbc.driver.OracleDriver Connection: jdbc:oracle:thin:@144.84.236.22:1531:ha1u When starting the interface I get t
-
Changing Fabric name in Fabric Manager
How do you change the name of the Fabric in the Logical Domains section of Fabric Manager?
-
CS4 very slow image linking.
We are having a efficiency issues with CS4. We have a large IDML document with 80 pages and 1800 images. Each image is about 24kb jpg. If we open the document and InDesign can find images, it will take hours to open the document. And it is very annoy