Exporting database using Apex interface
I want to export at once and in one file
- the database objects (tables, constraints, etc)
- and optionally database data as well
that are used by some given Apex application.
QUESTION: Is there any way to do that through the Apex interface?
I know how to do that with SQL-Developer.
I know also how I can export through the Apex interface
one selected object (for example, one table),
but what about exporting all of them together?
Thank you very much,
Marios
hi,
try this.
Exporting all the ddl objects in schema into single sql file. (tables, constraints, etc) at once
Open workspace-> Home>Utilities>Generate DDL->createscript-> schema Name->choose fron select list-> choose option Save As Script File-> check all->click Generate ddl-> type script name->click createscript-> stored into your sql scripts inside SQL WORKSHOP TAB->click export button right side under task link->click checkbox to the corresponding file name and click -> add to export->right side Scripts to Export have your file->click export all.
Combining Application + ddl objects + data
Open your application-> ckick Home>Application Builder>Application 123>Supporting Objects>Installation Scripts-> Create from Scratch-> give name-> editor will open -> copy and paste the sql commands which you have exported using above steps
data
if you need to export some sample data then you can paste those commands insert into tablenameinto the same sql editor in step2 and save it
note: in your Home>Application Builder>Application 123>Supporting Objects>export status-> Include Supporting Object Definitions in Export=yes
Export your application and user can import using single sql file.
thanks
Mark Wyatt
Similar Messages
-
Uploading csv file with number type data to database using apex
hi
am trying to upload csv file to oracle database using apex when i select the file using file browser and click on the button.
my table looks like
coloumn type
col1 number(2)
col2 number(2)
col3 number(2)
col4 number(2)
please tell me the steps i need to follow
urgent requirementThis thread should help - Load CSV file into a table when a button is clicked by the user
-
Uploading csv file into database using apex
Dear all
I am using apex 4 and oracle express 10g, i need to upload .csv file into the database for one of my appls, i have referred discussion forum for solutions, i found also, but some how its not working for me.
below mentioned is error and the code
ERROR:
ORA-06550: line 38, column 8: PLS-00221: 'V_DATA_ARRAY' is not a procedure or is undefined ORA-06550: line 38, column 8: PL/SQL: Statement ignored ORA-06550: line 39, column 8: PLS-00221: 'V_DATA_ARRAY' is not a procedure or is undefined ORA-06550: line 39, column 8: PL/SQL: Statement ignored ORA-06550: line 40, column 8: PLS-00221: 'V_DATA_ARRAY' is not a procedure or is undefined ORA-06550: line 40, column 8: PL/SQL: Statement ignored ORA-06550: line 41, column 8: PLS-00221: 'V_DATA_ARRAY' is not a proc
Error
OK
CODE:
DECLARE
v_blob_data BLOB;
v_blob_len NUMBER;
v_position NUMBER;
v_raw_chunk RAW(10000);
v_char CHAR(1);
c_chunk_len number := 1;
v_line VARCHAR2 (32767) := NULL;
v_data_array wwv_flow_global.vc_arr2;
BEGIN
-- Read data from wwv_flow_files
select blob_content into v_blob_data
from wwv_flow_files where filename = 'DDNEW.csv';
v_blob_len := dbms_lob.getlength(v_blob_data);
v_position := 1;
-- Read and convert binary to char
WHILE ( v_position <= v_blob_len ) LOOP
v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
v_char := chr(hex_to_decimal(rawtohex(v_raw_chunk)));
v_line := v_line || v_char;
v_position := v_position + c_chunk_len;
-- When a whole line is retrieved
IF v_char = CHR(10) THEN
-- Convert comma to : to use wwv_flow_utilities
v_line := REPLACE (v_line, ',', ':');
-- Convert each column separated by : into array of data
v_data_array := wwv_flow_utilities.string_to_table (v_line);
-- Insert data into target table
EXECUTE IMMEDIATE 'insert into TABLE_X (v1, v2, v3, v4 ,v5, v6, v7,v8 ,v9, v10, v11)
values (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11)'
USING
v_data_array(1),
v_data_array(2),
v_data_array(3),
v_data_array(4);
v_data_array(5);
v_data_array(6);
v_data_array(7);
v_data_array(8);
v_data_array(9);
v_data_array(10);
v_data_array(11);
-- Clear out
v_line := NULL;
END IF;
END LOOP;
END;
what i understand from this is system does not identify v_data_array as array for some reasons, please help me.
initially system was giving error for hex_to_decimal, but i managed to get this function on discussion forum and now it seems to be ok. but v_data_array problem is still there.
thanks in advance
regards
UdayHi,
Mistakes in your sample I did correct
Problem 1
select blob_content into v_blob_data
from wwv_flow_files where filename = 'DDNEW.csv'; to
select blob_content into v_blob_data
from wwv_flow_files where name = :P1_FILE;Problem 2
EXECUTE IMMEDIATE 'insert into TABLE_X (v1, v2, v3, v4 ,v5, v6, v7,v8 ,v9, v10, v11)
values (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11)'
USING
v_data_array(1),
v_data_array(2),
v_data_array(3),
v_data_array(4);
v_data_array(5);
v_data_array(6);
v_data_array(7);
v_data_array(8);
v_data_array(9);
v_data_array(10);
v_data_array(11); to
EXECUTE IMMEDIATE 'insert into TABLE_X (v1, v2, v3, v4 ,v5, v6, v7,v8 ,v9, v10, v11)
values (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11)'
USING
v_data_array(1),
v_data_array(2),
v_data_array(3),
v_data_array(4),
v_data_array(5),
v_data_array(6),
v_data_array(7),
v_data_array(8),
v_data_array(9),
v_data_array(10),
v_data_array(11); And I did create missing table
CREATE TABLE TABLE_X
v1 VARCHAR2(255),
v2 VARCHAR2(255),
v3 VARCHAR2(255),
v4 VARCHAR2(255),
v5 VARCHAR2(255),
v6 VARCHAR2(255),
v7 VARCHAR2(255),
v8 VARCHAR2(255),
v9 VARCHAR2(255),
v10 VARCHAR2(255),
v11 VARCHAR2(255)
);Regards,
Jari
Edited by: jarola on Nov 19, 2010 3:03 PM -
How to regularly load data from .csv file to database (using apex)
Hi,
i am using apex3 , I need to load data from a csv file to apex . I need to perform this automatically through code at regular time interval of 5-10 seconds.
Is it possible .If yes how ?. Please reply as early as possible. This will decide whether to use apex or not for this application.
this is question for Application Express. Dont know why in forum for BPEL
Edited by: TEJU on Oct 24, 2008 2:57 PMHello,
You really need to load the data every 5-10 seconds? Presumably it's read only?
I would look at using an Oracle external table instead, that way you just drop your CSV in a location the DB can read it and then you build a table that essentially references the underlying CSV (that way when you query the table you view the data in the CSV file).
Take a look at this link for a quick example on usage -
http://www.oracle-base.com/articles/9i/SQLNewFeatures9i.php#ExternalTables
Hope this helps,
John.
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! -
Insert and update in database using apex tabular form
Hi All,
i have tabular form
category_ID
Day
Hours
Start Date
End Date
1001
2
3
01-jun-2013
Null
1002
1
4
02-jun-2013
Null
1003
2
5
03-jun-2013
null
if day or hour change/update then End date will be sysdate.
and new row insert in table
category_ID
Day
Hours
Start Date
End Date
Header 6
1001
1
3
01-jun-2013
04-jun-2013
Day change from 2 to 1
1002
1
4
02-jun-2013
Null
No change
1003
2
5
03-jun-2013
null
No change
1001
1
3
04-jun-2013
null
New record insert which is change/update
how to achieve it.
Thanks in advance,
PrashantI usualy don't use the apex wizards to create forms when you need such custom functionality.
I just make the needed items, and when saving the form elements to the db i run my own written procedure en i submit the page with the request 'UPDATE' and i also set an id item with the newly created id for the inserted record.
So the page knows it should call the procedure that fills up all items with the values of the record i just saved. this also comes in handy when inserting a form in multiple tables. -
Upload multiple excel files into tables using APEX
Hi folks,
I'm wondering if anyone has ever uploaded multiple .csv files simultaniously and store the data into the database using APEX XE before.
I can browse for a single file, and execute that okay and a good example of doing that can be found at http://advait.wordpress.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
This works fine when the user browses to a specific file on their network and then uploads the data from that one file.
However I need the ability to 'grab' every file in a specific directory one after the other to process rather than having to specify which one to load everytime, and wondered if anyone has come across this before.
Many thanks
Graham.Just for completeness ...
Got this to work, but it's a pl/sql issue as opposed to an APEX issue.
Anyway, if anyone needs to have the ability to read multiple files then a quick easy way to do it (as lomg as they know the file names that will be read), is to create a directory on the database which points to the actual harddrive on your PC, then create a table (called an external table) and read from that external table as if it was an actual database table ...
1 - Log on as sys and grant CREATE ANY DIRECTORY to whatever user you are logging in as (assuming you are not using sys to create apps)
2 - Create a directory e.g....CREATE OR REPLACE DIRECTORY GB_TEST AS 'c:\gbtest';
3 - Create an external table as ...
CREATE TABLE gb_test
(file_name varchar2(10),
rec_date date
rec_name VARCHAR2(20),
rec_age number,
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER
DEFAULT DIRECTORY GB_TEST
ACCESS PARAMETERS
RECORDS DELIMITED BY NEWLINE
FIELDS TERMINATED BY ','
LOCATION ('data1.csv','data2.csv','data3.csv','data4.csv')
PARALLEL 5
REJECT LIMIT 20000;
That's it then ...
select * from gb_test
where file_name = 'xxx'
will return all the data where the file_name = 'xxx'
very easy to use. -
Have a requirement to consume a SOAP webservice (wsdl file) using apex
Hi,
I am using Application Express 4.2.2.00.11.
My requirement is to consume a soap web service (wsdl file).
I am pasting the wsdl fille.
<wsdl:message name="FulfillOrderResponseRequestMessage">
<wsdl:part name="payload" element="ffebm:ProcessFulfillmentOrderNotificationEBM"/>
</wsdl:message>
<wsdl:message name="FulfillOrderResponseResponseMessage">
<wsdl:part name="payload" element="ffebm:ProcessFulfillmentOrderNotificationResponseEBM"/>
</wsdl:message>
<wsdl:portType name="FulfillOrderResponse">
<wsdl:operation name="process">
<wsdl:input message="client:FulfillOrderResponseRequestMessage"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:portType name="FulfillOrderResponseCallback">
<wsdl:operation name="processResponse">
<wsdl:input message="client:FulfillOrderResponseResponseMessage"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="FulfillOrderResponseBinding" type="client:FulfillOrderResponse">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsp:PolicyReference URI="#wss11_saml_or_username_token_with_message_protection_service_policy" wsdl:required="false"/>
<wsp:PolicyReference URI="#wsaddr_policy" wsdl:required="false"/><wsdl:operation name="process">
and the xml file looks like this
<FulfillOrderResponseRequestMessage>
<part name="payload">
<coreforderrocessFulfillmentOrderNotificationEBM>
<corecom:EBMHeader>
<corecom:EBMID>2d383135353332303931343330383630</corecom:EBMID>
<corecom:EBMName>{_http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/FulfillmentOrder/V1}ProcessFulfillmentOrderNotificationEBM</corecom:EBMName>
<corecom:EBOName>{_http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/FulfillmentOrder/V1}ProcessFulfillmentOrderNotificationEBO</corecom:EBOName>
<corecom:CreationDateTime>2013-12-27T13:29:04.530+05:30</corecom:CreationDateTime>
<corecom:VerbCode>Update</corecom:VerbCode>
<corecom:MessageProcessingInstruction>
<corecom:EnvironmentCode>PRODUCTION</corecom:EnvironmentCode>
</corecom:MessageProcessingInstruction>
<corecomender>
<corecom:ID schemeAgencyID="GPR">EBSVIS</corecom:ID>
<corecomenderMessageID/>
<corecom:CallingServiceName>{_http://xmlns.oracle.com/ApplicationBusinessFlow/OrderToCash/ProcessFulfillmentOrderNotificationEbizToFusionDOOABF/V1}ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</corecom:CallingServiceName>
<corecom:WSAddress>
<ns1:ReplyTo>
<ns1:Address/>
<ns1ortType>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</ns1ortType>
<ns1erviceName>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</ns1erviceName>
</ns1:ReplyTo>
<ns1:FaultTo>
<ns1:Address/>
<ns1ortType>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</ns1ortType>
<ns1erviceName>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</ns1erviceName>
</ns1:FaultTo>
</corecom:WSAddress>
</corecomender>
<corecom:Target>
<corecom:ID schemeAgencyID="GPR">GPR</corecom:ID>
</corecom:Target>
<corecom:BusinessScope/>
<corecom:EBMTracking>
<corecomequenceNumber>1</corecomequenceNumber>
<corecom:ExecutionUnitName>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</corecom:ExecutionUnitName>
<corecom:ImplementationCode>BPEL</corecom:ImplementationCode>
<corecom:ActivityDateTime>2013-12-27T13:29:04.531+05:30</corecom:ActivityDateTime>
</corecom:EBMTracking>
<xacml-context:Request/>
</corecom:EBMHeader>
<coreforderataArea>
<corecomrocess operation="ProcessFulfillmentOrderNotification"/>
<coreforderrocessFulfillmentOrderNotification>
<corecom:Identification>
<corecom:BusinessComponentID/>
<corecom:ID schemeID="ORDER_NUMBER" schemeAgencyID="EBSVIS">66498</corecom:ID>
<corecom:ApplicationObjectKey>
<corecom:ID schemeID="HEADER_ID" schemeAgencyID="EBSVIS">228338</corecom:ID>
</corecom:ApplicationObjectKey>
<corecom:AlternateObjectKey>
<corecom:ID schemeAgencyID="GPR">300000030196926</corecom:ID>
</corecom:AlternateObjectKey>
<corecom:AlternateObjectKey>
<corecom:ID schemeID="ExternalInteractionKey">228338</corecom:ID>
</corecom:AlternateObjectKey>
</corecom:Identification>
<coreforder:CurrencyCode listAgencyID="EBSVIS">USD</coreforder:CurrencyCode>
<coreforder:TypeCode listAgencyID="GPR">ORDER</coreforder:TypeCode>
<corecom:BusinessUnitReference>
<corecom:BusinessUnitIdentification>
<corecom:BusinessComponentID/>
<corecom:ApplicationObjectKey>
<corecom:ID schemeID="ORG_ID" schemeAgencyID="EBSVIS">204</corecom:ID>
</corecom:ApplicationObjectKey>
<corecom:AlternateObjectKey>
<corecom:ID schemeAgencyID="GPR">300000028235904</corecom:ID>
</corecom:AlternateObjectKey>
</corecom:BusinessUnitIdentification>
</corecom:BusinessUnitReference>
<coreforder:FulfillmentOrderLine actionCode="UPDATE">
<corecom:Identification>
<corecom:BusinessComponentID/>
<corecom:ID schemeID="LINE_NUMBER" schemeAgencyID="EBSVIS">1</corecom:ID>
<corecom:ApplicationObjectKey>
<corecom:ID schemeID="LINE_ID" schemeAgencyID="EBSVIS">419300</corecom:ID>
</corecom:ApplicationObjectKey>
<corecom:AlternateObjectKey>
<corecom:ID schemeAgencyID="GPR">300000030196928</corecom:ID>
</corecom:AlternateObjectKey>
<corecom:AlternateObjectKey>
<corecom:ID schemeID="ExternalInteractionKey">419300</corecom:ID>
</corecom:AlternateObjectKey>
</corecom:Identification>
<coreforderrderQuantity>2</coreforderrderQuantity>
<coreforder:CurrencyCode listAgencyID="EBSVIS">USD</coreforder:CurrencyCode>
<corecomtatus>
<corecom:Code listAgencyID="GPR">AWAIT_SHIP</corecom:Code>
</corecomtatus>
<corecom:ItemReference>
<corecom:ItemIdentification>
<corecom:BusinessComponentID/>
<corecom:ApplicationObjectKey>
<corecom:ID schemeAgencyID="EBSVIS">225</corecom:ID>
</corecom:ApplicationObjectKey>
</corecom:ItemIdentification>
<corecom:TypeCode listAgencyID="GPR">4</corecom:TypeCode>
</corecom:ItemReference>
<coreforder:FulfillmentOrderSchedule actionCode="UPDATE">
<corecom:Identification>
<corecom:BusinessComponentID/>
<corecom:ApplicationObjectKey>
<corecom:ID schemeID="LINE_ID" schemeAgencyID="EBSVIS">419300</corecom:ID>
</corecom:ApplicationObjectKey>
<corecom:AlternateObjectKey>
<corecom:ID schemeID="FulfillLineId" schemeAgencyID="GPR">300000030196928</corecom:ID>
</corecom:AlternateObjectKey>
<corecom:AlternateObjectKey>
<corecom:ID schemeID="ExternalInteractionKey">419300</corecom:ID>
</corecom:AlternateObjectKey>
</corecom:Identification>
<coreforder:FreightTermCode listAgencyID="EBSVIS">Paid</coreforder:FreightTermCode>
<coreforderrderQuantity>2</coreforderrderQuantity>
<coreforderromisedShipDateTime>2013-12-27T19:30:00.000+00:00</coreforderromisedShipDateTime>
<corefordercheduledShipDateTime>2013-12-27T19:30:00.000+00:00</corefordercheduledShipDateTime>
<corecomtatus>
<corecom:Code listAgencyID="GPR">AWAIT_SHIP</corecom:Code>
</corecomtatus>
<corecom:UnitListPrice>
<corecom:Amount>100</corecom:Amount>
</corecom:UnitListPrice>
<corecom:UnitSalePrice>
<corecom:Amount>100</corecom:Amount>
</corecom:UnitSalePrice>
<corecom:CarrierPartyReference>
<corecomartyIdentification>
<corecom:ApplicationObjectKey>
<corecom:ID schemeAgencyID="EBSVIS"/>
</corecom:ApplicationObjectKey>
</corecomartyIdentification>
</corecom:CarrierPartyReference>
<coreforder:FulfillmentOrderScheduleTax>
<corecom:Tax>
<corecom:Amount>0</corecom:Amount>
</corecom:Tax>
</coreforder:FulfillmentOrderScheduleTax>
<coreforder:FulfillmentOrderItem>
<corecom:ItemReference>
<corecom:ItemIdentification>
<corecom:BusinessComponentID/>
<corecom:ApplicationObjectKey>
<corecom:ID schemeAgencyID="EBSVIS">225</corecom:ID>
</corecom:ApplicationObjectKey>
</corecom:ItemIdentification>
<corecom:TypeCode listAgencyID="GPR">4</corecom:TypeCode>
</corecom:ItemReference>
</coreforder:FulfillmentOrderItem>
</coreforder:FulfillmentOrderSchedule>
</coreforder:FulfillmentOrderLine>
</coreforderrocessFulfillmentOrderNotification>
</coreforderataArea>
</coreforderrocessFulfillmentOrderNotificationEBM>
</part>
</FulfillOrderResponseRequestMessage>
I need to pass few of the above parameters from database using apex.
Any help will be very thankfull.
Please if anything more is required to be provided from my side
Thanks
NileshI nee to pass values to few of the above parameters.
Please inform if anything more is required from my end. -
Error while trying to export my database using this command
Hi,
I am trying to export my database using this command :
expdp system/manager@db1 full=n schemas=kul4231 dumpfile=kul4231_20091122.dmp logfile=kul4231_20091122.log directory=dump_dir1
Error:
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-31626: job does not exist
ORA-31637: cannot create job SYS_EXPORT_SCHEMA_05 for user SYSTEM
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT_INT", line 600
ORA-39080: failed to create queues "KUPC$C_1_20091122101110" and "" for Data Pump job
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPC$QUE_INT", line 1606
ORA-01008: not all variables bound
DB version : Release 10.2.0.4.0
all ideas are welcomed!!!!!!!!!!!! let me know where am i going wrong!!!!!!!
thanks in advance..!!!!!!!!
venkat.What is your SGA settings? (especially streams_pool_size).
You can try to bump streams_pool_size to 100M if your current setting is below that.
Regards
Tomasz K. -
Connect to APEX database using VBA+ADO code in Microsoft Excel & Word?
I am looking at APEX as a potential replacement for a growing reporting/analysis system. As yet I have not found a clear answer on an important question.
The current system is a shared database and a collection of Microsoft Excel and Word templates. Each template contains underlying VBA code that establishes a direct connection to the database via OLE DB (i.e. ADODB objects in VBA via the OLE DB Provider for JET).
Each template’s underlying VBA code executes stored procedures or queries as required, the results of which are returned as Recordset objects and rendered to the Excel worksheet or Word document. Similarly, in some cases, data entered into an Excel worksheet by a user can be submitted back to the database at the click of a button, again via Recordset objects.
Now most of our templates could easily be ported to APEX. However, there is a strong preference that some of our templates continue to exist and maintain current functionality. So we have a requirement that Excel and Word can seamlessly and directly interact with an APEX database.
Long question short – is there a way to establish a connection and retrieve/insert data from an APEX database using OLE DB (ADODB) in VBA, as described above? I understand that APEX sits ‘on top’ of a real Oracle database, and I know Oracle provides an OLE DB Provider (OraOLEDB) for Oracle databases. Would OraOLEDB do the trick, or is it not as simple as that?
Many thanks for your insights on this,
MichalThe current system is a shared database and a collection of Microsoft Excel and Word templates. Each template contains underlying VBA code that establishes a direct connection to the database via OLE DB (i.e. ADODB objects in VBA via the OLE DB Provider for JET).
Long question short – is there a way to establish a connection and retrieve/insert data from an APEX database using OLE DB (ADODB) in VBA, as described above? I understand that APEX sits ‘on top’ of a real Oracle database, and I know Oracle provides an OLE DB Provider (OraOLEDB) for Oracle databases. Would OraOLEDB do the trick, or is it not as simple as that?Hi,
Apex gets installed as a separate schema in an existing database.
So it will not in any way interfere with your existing setup. You can continue to connect directly to the database from your spreadsheets, call stored procedures from VBA/ADO, etc.
- Morten
http://ora-00001.blogspot.com -
Changing passwords using APEX and Database Credentials
We are developing an application that uses database credentials. We can login very easily. Is there a simple way to create a page so that the users can change their own passwords? I understand that the users will in effect be issuing an ALTER USER statement from within APEX. However, we get an "Insufficient Privileges" error message when issuing the command from APEX. So, whose credentials is APEX using?
J,
So, whose credentials is APEX using?
There are no credentials involved here. All code in your PL/SQL application is parsed as the schema that owns the application. When you implement your PL/SQL application using Application Express, that schema is the "Owner" attribute, or parsing schema.
See Re: ORACLE Password Change using APEX FORM
Scott -
Want to export database not user. i am using oracle 8i and developer 6i.
i am using oracle 8i and developer 6i. i have created a button(when_button_pressed) on d2k with this command mentioned below. it is working only for user objects but i need to export database. how can i do this?
declare
com varchar2(100);
begin
host('exp tAJCO/tAJCO@tajco file=D:\dump\tajco.dmp');
if
not form_success then
message('Export failed.');
else
message('Export successful');
end if;
end;
please help me.....
thanks
mostafizmostafiz,
To Export entirel database, use the statement
Host('EXP tAJCO/tAJCO@tajco FILE=D:\dump\tajco.dmp FULL=YES DIRECT=Y',NO_SCREEN);
Regards,
Manu. -
Are there performancebenefits to reorganizing database-using export/import?
I have a production database using Oracle 9.2.0.5, which has been running for last 3 years since it was upgraded from 8.1.7. At that time we had done full export of 8.1.7 database and then created 9.2. instance and then imported all the application schemas.
Load on our database has been increasing and there are constant pressures from management to improve performance. We have looked at indexes many times, have lots of memory for SGA and have tuned various init.ora parameters. Being a third party packages, we cannot rewrite queries.
Application is a mix of OLTP and reporting, it is definitely more read than write.
Are there any benefits to reorganize database using export/import, i.e., we will do a full export of existing database and then delete all objects from application schemas and do schema imports. We will run the dbms_Stats again to recomputed statistics. Of course, we will test all of that in a test environment before making change sin production.
I have heard different views on reorganization. Some people say it is useless, some people say it can improve performance since data will be placed homely in fewer blocks.
Appreciate your feedback.Hi,
Oracle gave us reorg utilities (dbms_redefinition) because Oracle does not do real-time reorganization for performamnce reasons.
In some applications, reorgs are critical to high-performance, while in others, it may make no difference.
Remember, a reorg simply puts the indexes and tables into their "optimal" pristine state.
The most striking benefit of table reorgs is when a "sparse" table experiences lots of full scans. After the reorg, response time can be cut in half.
Also, in cases where related rows are queried together, a reorg with row-resequencing (like 10g sorted hash clusters) make a bif difference:
http://www.dba-oracle.com/t_table_row_resequencing.htm
But like I said, it depends on many factors . . .
Hope this helps . . .
Donald K. Burleson
Oracle Press author
Author of "Oracle Tuning: The Definitive Reference"
http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm -
Choose a database among various databases for export/import using.
Hello,
I am using forms 6i and I want to export several databases using
forms.
With regards to that what is the technique/code I could use to select
the database of my choice for export.
How could we get the name/services of a particular database among
various databases using Forms 6i.
Could some one give me the idea/code to get the above requirement?
Thanks
AmitWhy would you want to use Forms (a client tool) to import or export a database? Imp and exp are command line tools meant to be run on the database server.
You will probably be hitting other problems, like different database versions. For every database version you need the correct imp and exp.
If you really want to use Forms, than just make a table that hold the names of the databases. -
Anyone have trouble convincing database infrastructure support to use Apex?
Hi,
I am consulting at a very large bank which outsources its database operations to another company. As such, the outsourcing group has very strict rules surrounding database usage. I have been using Application Express for a while now and would like to use it on projects for my current client. Unfortuneately, the outsourcing group has decided to reject usage of Application Express since it requires additional services (the web server) that they do not sancion running on database server. They also cited the email capbilities and web services as reasons why they shun it's usage.
Anyone else run into this? If so, anyone successful in overcoming the arguments being made by this group? In my opinion they are just being lazy in that they don't want to deal with something new. Instead of building processes to monitor and control what they fear they have decided to not deal with it entirely and the effect is lost productivity of not being able to use technology such as Apex.Hi Bill,
Oh I feel your pain, I've heard that sort of argument many times before (so excuse the cynicism/humour in my replies, it's not directed at you...it's against 'them') -
Unfortuneately, the outsourcing group has decided to reject usage of Application Express
since it requires additional services (the web server) that they do not sancion running on
database server.As Bob says, you can install the OHS on another machine if that is their primary concern. Infact many times you might want it on a seperate machine anyway. As for the 'requires additional services', show me one component of Oracle that doesn't rely on another ;)
Do they object to running the listener on the machine so that you can connect to it? Thought not ;)
They also cited the email capbilities and web services as reasons why they shun it's usage. The easy answer is...if they don't like them, don't use them.
My 'cynical' answer would be, have they removed the UTL_MAIL/UTL_TCP packages from the DB? Do they know they're there?
In my opinion they are just being lazy in that they don't want to deal with something new.Harsh...but I somewhat agree with you, it's easy to dismiss offhand things that we don't know about, it takes a braver person to stand up and say "Dang....this tool is *so* much better than the one I just spent years learning" ;)
The thing is, pretty much every argument I've heard against using APEX can either be disproved or counteracted, so long as it is a technical reason (or even just an 'urban myth'). However if it's a 'business rule' that you don't use 'XYZ' technology then it's often incredibly difficult to change that rule.
However, I have come across a surprising number of 'Guerilla Projects', where even though APEX wasn't 'officially' used as a development tool by a company, some 'enterprising' developers have got hold of it, developed something, released it to users and changed perception that way (as Bob again mentions).
In additional to Bob's other comment about setting up a test machine, why not show them what can be done in just a few minutes using the public Oracle site (http://apex.oracle.com), since a quick visual click-and-show often changes opinions a lot faster than giving them 200 pages of documentation ;) -
Use Apex to create 2nd database
I already have Oracle 10g and Apex working fine on my Windows XP box.
Now my user has altered their requirements causing me to need to create a 2nd "database" using same named tables as already exist in my 1st "database".
Can this be done? Am I using the correct terminology saying "database" rather than maybe "connection"?I created a PHP system for them using their Oracle 6 database tables. They have now upgraded their environment to Oracle 7 with, I suspect, some alterations to their column names.
On my development machine I have a connection to s6s which is equavelent to their 1st version. I now want to create s7s containing the same tables as the s6s and carry on developing on that. I do not want to loose the s6s as the maintenance/support I have to do may well require this.
I hope that the above is a bit more clear.
Maybe you are looking for
-
Associating file with a particular Application
Hi. How can I associate a file, meaning that I want only a particular application can write to the file. Im creating an application that uses an XML file as data storage. I dont want any other applications (e.g Notepad, word) to write into it other t
-
Silent install and activation of 50x copies of PhotoShop Elements 12 TLP
I am trying to deploy a 50-user TLP licence of PSE12 to 50 PCs without having to visit each PC, as was possible with previous versions. I have the silent install completing without error but the product is not activated, and needs me to sign in with
-
I plugged my Ipad3 in order to update the software to version 6.1 but I got an error message and my Ipad is locked now, it's showing the Itunes logo with USB cable on the screen. What should I do now?
-
Hi, Is there a BAPI that updates the JEST table - status of scheduling agreements? Thanks, Leon
-
Run time error equals shortdumps
Hi ALL, While monitoring SM21 & ST22 , we crosscheck that, NO of "run time errors" in SM21 which should match equal to the NO of "short dumps" in ST22 for that particular date. Today i am getting 9 run time errors & 8 short dumps. 1 run time err