If Both tables having References then how to insert the data each other
Hai EveryOne..,
My Sample data.,
Create table emp (empno number primary key,ename varchar2(20));
Create table emp_dup (empno number references emp(empno),ename varchar2(20) primary key);
alter table emp add constraint ename_fk foreign key(ename) references emp(ename);
My Question is How to insert the data into these two tables?
Its a *"Circular Reference"* Concept.
Please ...
Thank You!!
You need to set the DEFERRED clause of the constraint when you create your foreign key as DEFERRABLE by which you can move the constraint validation at transaction level.
In an interview point of view that could be a reasonable answer. But in real time this could be strongly questionable.
Here is an example
SQL> create table emp1 (empno number, ename varchar2(10))
2 /
Table created.
SQL> create table emp2 (empno number, ename varchar2(10))
2 /
Table created. Define Primary Key for two tables
SQL> alter table emp1 add constraint emp1_pk primary key (empno)
2 /
Table altered.
SQL> alter table emp2 add constraint emp2_pk primary key (ename)
2 /
Table altered. Add foreign key for two tables with DEFERRED clause set as DEFERRABLE
SQL> alter table emp1 add constraint emp1_fk foreign key (ename) references emp2(ename) initially deferred deferrable
2 /
Table altered.
SQL> alter table emp2 add constraint emp2_fk foreign key (empno) references emp1(empno) initially deferred deferrable
2 /
Table altered. Now here is the test case
SQL> insert into emp1 values (1, 'karthick')
2 /
1 row created.
SQL> commit
2 /
commit
ERROR at line 1:
ORA-02091: transaction rolled back
ORA-02291: integrity constraint (ARBORU.EMP1_FK) violated - parent key not found So the validation is done at Transaction level. Now let insert the value into both tables.
SQL> insert into emp1 values (1, 'karthick')
2 /
1 row created.
SQL> insert into emp2 values (1, 'karthick')
2 /
1 row created.
SQL> commit
2 /
Commit complete.
Similar Messages
-
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... -
How to insert the data using matrix
Hi
All how to insert the data using matrix feild
plz help me
thanks
LoyHi Loy,
The best way to fill an entire matrix is to use a DBDatasource, here is some sample code:
Dim oForm As SAPbouiCOM.Form
oForm = SBO_App.Forms.Item("YourFormTypeID")
'1. Add a DBDataSource to the form
oForm.DataSources.DBDataSources.Add("OUSR")
Dim oColumnDBS As SAPbouiCOM.Column
Dim oColumnUDS As SAPbouiCOM.Column
Dim i As Integer
Dim GenEdt As SAPbouiCOM.EditText
Dim oMatrix As SAPbouiCOM.Matrix
Dim oColumns As SAPbouiCOM.Columns
Dim oDBDataSource As SAPbouiCOM.DBDataSource
oMatrix = oForm.Items.Item("7").Specific
oColumns = oMatrix.Columns
'2. DBDataSource: Binding a field / alias of the table to a column
oColumnDBS = oColumns.Item("V_1")
oColumnDBS.DataBind.SetBound(True, "OUSR", "U_NAME")
'3. getting the data sources bound to the form
oDBDataSource = oForm.DataSources.DBDataSources.Item("OUSR")
oMatrix.Clear()
' Querying the DB Data source
oDBDataSource.Query()
' Adding the data to the matrix
oMatrix.LoadFromDataSource()
When you want to fill a specific field use :
GenEdt = oMatrix.Columns.Item("V_2").Cells.Item(1).Specific
GenEdt.String = "Hello" -
How to insert the data if the data in the two tables doesn't match.
Hi,
I have requirement like,I have to insert the data by comparing the two tables based on the date field.If they both are equal then the data shouldn't be inserted if not the data has to be inserted.
Can some one help me on this ASAP.
Regards,
Sudha
sudhaHi,
Thanks for the reply,i would like to know the way that we can design the packages
sudha
You have multiple ways of implementing this
1. Using Lookup Task
http://www.sqlis.com/sqlis/post/Get-all-from-Table-A-that-isnt-in-Table-B.aspx
2. using SCD wizard
http://www.bimonkey.com/2009/07/the-slowly-changing-dimension-transformation-part-1/
3. using hashing
http://visakhm.blogspot.in/2014/06/ssis-tips-implementing-scd.html
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
How to insert the data which is present in the variable into the table
Hi,
Let's consider that I have one table and I have stored the table column names in one variable and their values in another variable.
I want to insert the data that is present in the variables into the table.
I tried the following way :
Declare
V_columns Varchar2(50) := 'Empno';
V_values Number(10) := 101;
Begin
Insert Into Emp (V_columns) Values (V_values);
End;
The above procedure gives an error : PL?SQL : ORA-00904 : "V_COLUMNS": invalid identifier
Using the Execute Immediate, we can insert the data which is present in the variables into the table.
Is there any other way to insert the data which is present in the variable into the table..?
Can anyone please give me the solution..?
Thanks..plz use this...
DECLARE
v_columns VARCHAR2 (50) := 'Empno';
v_values NUMBER (10) := 101;
BEGIN
EXECUTE IMMEDIATE 'Insert Into Emp ('
|| v_columns
|| ') Values ('
|| v_values
|| ')';
COMMIT;
END; -
How to insert the data even the trigger returned null
Hi Gurus,
I have a question regarding on how to insert the record even the condition being used by a "before insert trigger" returned null.
The scenario is:
2 tables have the same structure:
Table A (Name varchar2 (100), No Number)
Table B (Name_1 varchar2 (100), No Number)
A script is using to load the data into table A daily, and a “before insert trigger” is being used to get the value for A.Name = B.Name whenever the condition A.No equals to B.No.
If the B.No exists, then the trigger work fine, otherwise the records will be rejected, this is not the way we wanted, so I just wonder, is there any way to load all the data to the other fields but still using this trigger ?
Thanks,
TranEither amend the select in the trigger that gets the name value to not raise a NO_DATA_FOUND exception (e.g. change "select name..." to "select min(name)..." ) or handle the NO_DATA_FOUND exception in an exception handler.
e.g.
EXCEPTION
WHEN no_data_found THEN
:new.name = 'where the streets have no name'; -
How to insert the data to selected cell in multicolumn
Hello Labviewer
I am new for labview, and have a problem when i am using a multicolumn listboxes, how can i insert the data to my selected cell,
something like
header XXXmengyi
The property node of the listbox has a "Item Names" property. This is a two dimensional array corresponding accordingly to the row by column listbox. You can modify this array to change the listed string for the selected cell(s).
--Russ -
Hi Everyone,
I am new to Oracle forms. I have a requirement where user wants a form which can be used to browse a excel file from his/her system. Also after browsing the file the user should be able to load the data from the file to a table in the Oracle DB.
Any help pointers would be appreciated.
Thanks,
Satya
Message was edited by: user12098633Hi Marcus,
I am using EBS (E- Business Suite) ERP and version is 11.5.10.2
My database version is as below
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE
11.2.0.3.0
Production
TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
I want to move csv file via EBS only. Average size of this will be max 600-700 bytes.
Program should be in pl/sql package or concurrent program or custom .fmb (d2k forms) or custom .rdf (d2k report) or through alert. I am not using samba. -
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 -
How to unlock the data from other user while editing
Hi friends,
I have created 4 maintenance views for a table. While editing data by using one view, I must be able to edit other data of the same table using other different view. But it is showing "The data is locked by user pagidala and can be displayed only. do u want to display locked data?". I must not get this error, it must permit me to edit the data. How it will be possible?
Thanks,
Ramesh.Hi,
I think Its not possible because If there is such type of option there will not be data security.
i.e. while your maintaing the data in table others can change it simultaneously and it can lead to errors
If you wish Go to SM12 and remove the lock manually
Regards
Prasanth -
Hi, I have the following xml file, can some one please tell me how to insert this file cdata into the table in the below format
There would be couple of <TRAN> tag where we will not have AMT Tag but we will have only RKEY Tag.
<?xml version='1.0' encoding='UTF-8'?>
<main>
<F_Header>
<Version><![CDATA[1.0]]></Version>
<SInfo>
<In>
<ID><![CDATA[12]]></ID>
<Type><![CDATA[S]]></Type>
<Filepath><![CDATA[\\temp\files\test.xml]]></Filepath>
</In>
</SInfo>
</F_Header>
<Tran>
<GI>
<RKey><![CDATA[1]]></RKey>
<Amt><![CDATA[10.80]]></Amt>
</GI>
</Tran>
<Tran>
<GI>
<RKey><![CDATA[2]]></RKey>
<Amt><![CDATA[11.89]]></Amt>
</GI>
</Tran>
<Tran>
<GI>
<RKey><![CDATA[0]]></RKey>
</GI>
</Tran>
</main>
create table temp_tab(version varchar2(20), SinfoID varchar2(20)
, SInfotype varchar2(20), SInfoFPath varchar2(20), TranKey varchar2(20), TranAmt varchar2(20))
The sample output should look like
Version SINFOID SINFOTYPE SINFOPATH TRANKEY TRANAMT
1.0 12 S \\temp\files\test.xml 1 10.80
1.0 12 S \\temp\files\test.xml 2 11.89
1.0 12 S \\temp\files\test.xml 0
Thanks,As A_Non explained, two XMLTables will do the job.
The first one to extract header info and the collection of Tran elements, and the second one to shred the collection of Trans passed from the first XMLTable into relational rows :
SQL> SELECT h.version
2 , h.SInfoID
3 , h.SInfotype
4 , h.SInfoFPath
5 , t.TranKey
6 , t.TranAmt
7 FROM XMLTable(
8 '/main'
9 passing xmltype(bfilename('TEST_DIR','test.xml'),nls_charset_id('AL32UTF8'))
10 columns
11 version varchar2(10) path 'F_Header/Version'
12 , SInfoID varchar2(10) path 'F_Header/SInfo/In/ID'
13 , SInfotype varchar2(10) path 'F_Header/SInfo/In/Type'
14 , SInfoFPath varchar2(40) path 'F_Header/SInfo/In/Filepath'
15 , Trans xmltype path 'Tran'
16 ) h
17 , XMLTable(
18 '/Tran'
19 passing h.Trans
20 columns
21 TranKey varchar2(10) path 'GI/RKey'
22 , TranAmt varchar2(10) path 'GI/Amt' default '0'
23 ) t
24 ;
VERSION SINFOID SINFOTYPE SINFOFPATH TRANKEY TRANAMT
1.0 12 S \\temp\files\test.xml 1 10.80
1.0 12 S \\temp\files\test.xml 2 11.89
1.0 12 S \\temp\files\test.xml 0 0 -
How to insert the data using SyncoBo Object
Hi ,
please provide the code for inserting the data such tat my meRepMeta.xml
contains
one Top Row
4 Child Row
i done the coding for inserting top rowHi Saravana,
I am not sure about the query based on sync_key value but i am suggesting the code snippet that you can use to get the SyncBo by the SyncBoName and SyncKey.
public SyncBo getSyncBoInstance(String syncBoName, String syncKey) {
SyncBoDescriptor sbd = descriptorFacade.getSyncBoDescriptor(syncBoName);
try {
SyncBo sb = dataFacade.getSyncBo(sbd, syncKey);
return sb;
} catch (PersistenceException pex) {
System.out.println(pex.getMessage());
return null;
Based on the SyncBo value from the previous code snippet , you can obtain the rowCollection thru this method.
public RowCollection[] getRows()
throws PersistenceException
Ex:
sb.getRows()
Once you obtain the RowCollection for the particular syncBo,you can iterate thru rowCollection to get the row entities.
//To get the iterator of the Row entities in this RowCollection.
MeIterator it = rowList.iterator();
From each row entity you can get the field values by this method
public MeIterator getFieldValues()
I would suggest you to go through the API Doc which is clearly explained about all the methods which would be useful for you to do all sort of operation.
Regards,
Rajan -
How to download the data which is in the table?
how to download the data which is in the table?
every field data in the table i want to download and once the download is finished then i have to set the flag as 'download is finished ' as one field in table?
can any one help me in this.
Phani.
Edited by: phani kumarDurusoju on Jan 9, 2008 6:36 AMOne way is to Download the data Directly from the database table using the path SE11->Give table name ->Execute -> system ->List ->Save ->Local File
There u can downlaad the data .
The ither way is to use the code
The Following Code will be helpfull to You
Data :ITAB TYPE TRUXS_T_TEXT_DATA,
FILE TYPE STRING.
C_ASC TYPE CHAR10 VALUE 'ASC',
DATA: L_STATUS TYPE C,
L_MESSAGE TYPE PMST_RAW_MESSAGE,
L_SUBJECT TYPE SO_OBJ_DES.
DATA: L_FILELENGTH TYPE I.
PERFORM download_to_pc
TABLES
itab
USING
filename
c_asc
c_x
CHANGING
l_status
l_message
l_filelength.
FORM DOWNLOAD_TO_PC TABLES DOWNLOADTAB
USING FILENAME
FILETYPE TYPE CHAR10
DELIMITED
CHANGING STATUS
MESSAGE TYPE PMST_RAW_MESSAGE
FILELENGTH TYPE I.
DATA: L_FILE TYPE STRING,
L_SEP.
L_FILE = FILENAME.
IF NOT DELIMITED IS INITIAL.
L_SEP = 'X'.
ENDIF.
STATUS = 'S'.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = L_FILE
FILETYPE = FILETYPE
WRITE_FIELD_SEPARATOR = L_SEP
IMPORTING
FILELENGTH = FILELENGTH
TABLES
DATA_TAB = DOWNLOADTAB
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22.
IF SY-SUBRC <> 0.
STATUS = 'E'.
CASE SY-SUBRC.
WHEN 1.
MESSAGE = 'gui_download::file write error'.
WHEN 2.
MESSAGE = 'gui_download::no batch'.
WHEN 3.
MESSAGE = 'gui_download::gui refuse file transfer'.
WHEN 4.
MESSAGE = 'gui_download::invalid type'.
WHEN 5.
MESSAGE = 'gui_download::no authority'.
WHEN 6.
MESSAGE = 'gui_download::unknown error'.
WHEN 7.
MESSAGE = 'gui_download::header not allowed'.
WHEN 8.
MESSAGE = 'gui_download::separator not allowed'.
WHEN 9.
MESSAGE = 'gui_download::filesize not allowed'.
WHEN 10.
MESSAGE = 'gui_download::header too long'.
WHEN 11.
MESSAGE = 'gui_download::dp error create'.
WHEN 12.
MESSAGE = 'gui_download::dp error send'.
WHEN 13.
MESSAGE = 'gui_download::dp error send'.
WHEN 14.
MESSAGE = 'gui_download::ubknown dp error'.
WHEN 15.
MESSAGE = 'gui_download::access denied'.
WHEN 16.
MESSAGE = 'gui_download::dp out of memory'.
WHEN 17.
MESSAGE = 'gui_download::disk full'.
WHEN 18.
MESSAGE = 'gui_download::dp timeout'.
WHEN 19.
MESSAGE = 'gui_download::file not found'.
WHEN 20.
MESSAGE = 'gui_download::dataprovider exception'.
WHEN 21.
MESSAGE = 'gui_download::control flush error'.
WHEN 22.
MESSAGE = 'gui_download::Error'.
ENDCASE.
ENDIF.
ENDFORM. "download_to_pc
At The End Reward points.
Please it's Required.
Thanks ,
Rahul -
How to delete the data from partition table
Hi all,
Am very new to partition concepts in oracle..
here my question is how to delete the data from partition table.
is the below query will work ?
delete from table1 partition (P_2008_1212)
we have define range partition ...
or help me how to delete the data from partition table.
Thanks
Sree874823 wrote:
delete from table1 partition (P_2008_1212)This approach is wrong - as Andre pointed, this is not how partition tables should be used.
Oracle supports different structures for data and indexes. A table can be a hash table or index organised table. It can have B+tree index. It can have bitmap indexes. It can be partitioned. Etc.
How the table implements its structure is a physical design consideration.
Application code should only deal with the logical data structure. How that data structure is physically implemented has no bearing on application. Does your application need to know what the indexes are and the names of the indexes,in order to use a table? Obviously not. So why then does your application need to know that the table is partitioned?
When your application code starts referring directly to physical partitions, it needs to know HOW the table is partitioned. It needs to know WHAT partitions to use. It needs to know the names of the partitions. Etc.
And why? All this means is increased complexity in application code as this code now needs to know and understand the physical data structure. This app code is now more complex, has more moving parts, will have more bugs, and will be more complex to maintain.
Oracle can take an app SQL and it can determine (based on the predicates of the SQL), which partitions to use and not use for executing that SQL. All done totally transparently. The app does not need to know that the table is even partitioned.
This is a crucial concept to understand and get right. -
How to check the data in a temporary table
Hi,
A procedure inserting data into a temporary table , data exists in the table now. so, how to see the data from the temporary table. Is it possible to see from the sqlplus by selecting, right now i'm not getting any data. .thanks Bcj.If you are referring to Global Temporary Tables, then the only way to see the contents of the table are to select from the table while connected to the same session that inserted the data into the GTT.
Please note however that there is not a 1 to 1 correspondence between sessions and users (shcemas). A user may be connected to 1 or more sessions, but it is only the session that inserted the records that will be able to view the records.
Maybe you are looking for
-
Java Stored Procedure using XSU on 9i Lite
I have create Java Stored Procedure using XML SQL Utility to return results in XML format. I have tested the stored procedure on the development machine (with SDK and Webtogo)without any problem. When I tested it on the client machine (with only the
-
Actually I think I just updated it but when I go to fox 13 to watch episodes of "house" It tells me I have to do it again. Man this computer pissed me off so much!!! I will do anything for the person who can help. URGGGGG!!!!!
-
Illustrator File Icons are White?? Windows 7
I seem to have lost my icons for Illustrator CS2 and InDesign CS2 files. The files show as a standard white "page" icon, instead of the program icon. Since I often have multiple Adobe file formats in one folder, it makes it difficult to distinguish w
-
Hi all, is it possible to set gross amount as a charecterstic with value in release procedure ? if possible please guide me, regards
-
SSD: What's the Real Advantage?
I am planning to but a new iMac and was thinking about getting a SSD. But I'm curious as to what the advantages really are? If its just speed, then IMO it's not worth the extra $500.00. I always though that SSD drives are more stable and had a longer