Want to copy a table
Dear Team,
i want to copy a table which has log raw column, could you please help us
select * from a1 as select * from a; wount work because table a contains long raw.
Your assistance is highly appreciated.
Thanks,
Aj
One way is :
SQL> create table tbl1 (id number, txt long raw);
Table created.
SQL> create table tbl2 (id number, txt long raw);
Table created.
SQL> insert into tbl1 values (1,rawtohex('aeklru'));
1 row created.
SQL> commit;
Commit complete.
SQL> select * from tbl1;
ID T
1 6
SQL> insert into tbl2 select * from tbl1;
insert into tbl2 select * from tbl1
ERROR at line 1:
ORA-00997: illegal use of LONG datatype
SQL> begin
2 for i in (select * from tbl1) loop insert into tbl2 values (i.id,i.txt); end loop;
3 end;
4 /
PL/SQL procedure successfully completed.
SQL> select * from tbl2;
ID T
1 6
SQL>Nicolas.
Similar Messages
-
Simple: How to copy a Table from one Database to another?
I already know how to do it by creating an identical table and then inserting the Data.
Like so:
SET IDENTITY_INSERT dByDtMinusC5 ON
INSERT INTO [DB1]..T1 ([Id], [HbyD] , [K] )
SELECT [Id], [[HbyD]]] ,[K] FROM [DB2]..T2
As you can see I need to have T1 in order to copy T2 into DB1. Is there any way that I could auto create T1 and copy T2?
There are so many forums in sql server Category, I hope I posted in the right one :0 . We need tag system for forums.Hi Bhupinder,
According to your description, you want to copy a table with Primary keys from one database to another database.
As per my understanding, I think the best method is use Transfer SQL Server Objects Task in SQL Server Integration Services. The Transfer SQL Server Objects task transfers one or more types of objects in a SQL Server database between instances of SQL Server.
Server roles, roles, and users from the specified database can be copied, as well as the permissions for the transferred objects. Indexes, Triggers, Full-text indexes, Primary keys, Foreign keys can also be copied.
To use the Transfer SQL Server Objects Task, we should create a SQL Server Integration Services Project in SQL Server Data Tools, then drag a Transfer SQL Server Objects Task to Control Flow pane. Specify SourceConnection, SourceDatabase, DestinationConnection
and DestinationDatabase for the Connection, select the table in the ObjectsToCopy category, then change CopyPrimaryKeys to True and the other corresponding properties in the task.
References:
Transfer SQL Server Objects Task
Transfer SQL Server Objects Task in SSIS 2008 R2 With Example
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to Copy a table from mail to Numbers
Hi,
Today I received a mail from Exchange user. He Paste a table in to the mail and sent to me. I am using safari on Ipad 3.
i just want to copy tat table to Numbers; whenever i try to Select "Select all" all shows selected but after copying tabel can be shown !
Can you suggest me the way to resolve this issue.Edit:
I realize I should have said: I don't know how to make Copy in Mail and Paste in Numbers work. I know how it should work, just as you believe it should work. When I try, the best I can do is a 1-column table of text, similar to what you get in OSX numbers if you Paste into the text layre of a cell rather than into a Sheet.
Jerry -
How to copy a table from one text frame to another...
Is there a way to copy a table from one text frame to another? I'm using JavaScript. The following will move a table from one text frame to another, but I need to copy.
var srcFrame = document.textFrames.item("section-template");
var dstFrame = document.textFrames.item("test");
srcFrame.characters[0].move(LocationOptions.before, dstFrame.insertionPoints[0]);
Thanks,
Mike-Hi Bhupinder,
According to your description, you want to copy a table with Primary keys from one database to another database.
As per my understanding, I think the best method is use Transfer SQL Server Objects Task in SQL Server Integration Services. The Transfer SQL Server Objects task transfers one or more types of objects in a SQL Server database between instances of SQL Server.
Server roles, roles, and users from the specified database can be copied, as well as the permissions for the transferred objects. Indexes, Triggers, Full-text indexes, Primary keys, Foreign keys can also be copied.
To use the Transfer SQL Server Objects Task, we should create a SQL Server Integration Services Project in SQL Server Data Tools, then drag a Transfer SQL Server Objects Task to Control Flow pane. Specify SourceConnection, SourceDatabase, DestinationConnection
and DestinationDatabase for the Connection, select the table in the ObjectsToCopy category, then change CopyPrimaryKeys to True and the other corresponding properties in the task.
References:
Transfer SQL Server Objects Task
Transfer SQL Server Objects Task in SSIS 2008 R2 With Example
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Hi, I want to copy access tables to oracle database.
Till now I have opened the connections to both of them.
Can anyone explain me what are the next steps?
Here is the code that I wrote till now:
String connString = "User Id=******* ;Password=******* ;Data Source=******* ";
String connString2= " Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\\temp.mdb" ;
OracleConnection oraConnection = new OracleConnection(connString);
DbConnection accessConnection = new OleDbConnection(connString2);
// openning the oracle connection
try
oraConnection.Open();
Console.WriteLine("\nHello, Oracle Here!\n");
Console.WriteLine("Connection String: ");
Console.WriteLine(oraConnection.ConnectionString.ToString() + "\n");
Console.WriteLine("Current Connection State: ");
Console.WriteLine(oraConnection.State.ToString() + "\n");
Console.WriteLine("Oracle Database Server Version: ");
Console.WriteLine(oraConnection.ServerVersion.ToString());
catch (Exception ex)
Console.WriteLine("Error occured: " + ex.Message);
finally
if (oraConnection.State == System.Data.ConnectionState.Open)
oraConnection.Close();
//openning the access connection
try
accessConnection.Open();
Console.WriteLine("\nHello, Access Here!\n");
Console.WriteLine("Connection String: ");
Console.WriteLine(accessConnection.ConnectionString.ToString() + "\n");
Console.WriteLine("Current Connection State: ");
Console.WriteLine(accessConnection.State.ToString() + "\n");
Console.WriteLine("Microsoft Access Version: ");
Console.WriteLine(accessConnection.ServerVersion.ToString());
catch (DbException e)
Console.WriteLine( "Unable to open database:" + e.Message);
throw;
}Hi Peter,
Thanks for the feedback.
I have replicated the issue also.
Basically Dutch is not a supported language in SQL Developer.
SQL Developer fell back on English as the default , but obviously this component, the Apply Button, has an issue.
Your workaround is correct as it specifically tells SQL Developer to run English rather than waiting for it to fall back to the default language.
Thanks,
Dermot.
SQL Developer Team. -
How to schedule to copy a table to another table
Hi expert,
I want to copy a table to another table at some time later by schedule. how can I set this schedule in oracle database? can I do this schedule in toad?
Many Thanks,Submit a job that executes a stored procedure (or an anonymous block) that will copy the data from table1 to table2.
You can use DBMS_JOB or DBMS_SCHEDULER for that. -
Want to copy/append data in one table to another
Hi,
I have two similar tables Alo_table and Alo_table_test with different indexes, partitions etc.
Alo_table has some data. I want to copy/append this data in to Alo_table_test for further testing. How to copy/append data without changing the other settings from Alo_table to Alo_table_test?
Thanks in advance,
SMay be you are Looking for MERGE statement
It will Insert New Record if not Found to your Destinamtion table or Update if Record Found
MERGE INTO bonuses B
USING (
SELECT employee_id, salary
FROM employee
WHERE dept_no =20) E
ON (B.employee_id = E.employee_id)
WHEN MATCHED THEN
UPDATE SET B.bonus = E.salary * 0.1
WHEN NOT MATCHED THEN
INSERT (B.employee_id, B.bonus)
VALUES (E.employee_id, E.salary * 0.05); -
Want to copy the data form one table to another.
I have two tables named COMP_TRAINING_T and TRNG_CMTS_COMMENTS.
Now i feel the TRNG_CMTS_COMMENTS is needed so i am moving a column from this table to COMP_TRAINING_T.
I already have some data in both tables. I have add the column in COMP_TRAINING_T and want to update this table as follows
update COMP_TRAINING_T a
SET COMP_TRNG_COMMENTS=
( Select COMP_TRNG_CMTS_COMMENTS from comp_trng_cmts_t b
where a.comp_trng_finance_nbr= b.comp_trng_cmts_finance_nbr and
a.comp_trng_audit_userid=b.comp_trng_cmts_audit_userid and
a.comp_trng_date= b.comp_trng_cmts_date and
a.comp_trng_userid= b.comp_trng_cmts_userid)
but it is updating the rows correctly for the data it found from the COMP_TRNG_CMTS_COMMENTS table but for other rows it is setting it as Null value.
How to rewrite this sql.
ThanksHi,
Welcome to the forum!
You're doing an UPDATE statement without a WHERE clause, so every row in the destination table will be updated. If the correlated sib-query doesn't find any matching rows in the source table, there's no error, but NULL is returned, so some rows in the destination table may get set to NULL.
To avoid that, you can use MERGE:
MERGE INTO comp_training_t a
USING (
SELECT comp_trng_cmts_comments
, comp_trng_cmts_finance_nbr
, comp_trng_cmts_audit_userid
, comp_trng_cmts_date
, comp_trng_cmts_userid
FROM comp_trng_cmts_t
) b
ON ( a.comp_trng_finance_nbr = b.comp_trng_cmts_finance_nbr
AND a.comp_trng_audit_userid = b.comp_trng_cmts_audit_userid
AND a.comp_trng_date = b.comp_trng_cmts_date
AND a.comp_trng_userid = b.comp_trng_cmts_userid
WHEN MATCHED THEN UPDATE
SET a.comp_trng_comments = b.comp_trng_cmts_comments
;MERGE tests (using the ON conditions) whether or not ther is a match between the destination table and the source sub-query.
If there is a match, it can do an UPDATE.
If there is no match, it can do an INSERT. In this case, we don't want to insert any new rows, so we just omit the WHEN NOT MATCHED clause.
Notice that the USING sub-query returns all the columns from the source table that play any role in this job.
The ON clause contains all the correlation conditions that were in your original statement.
The alternatives, using UPDATE are:
(a) Update all rows, but use NVL to set values to themselves if the sub-query returns NULL
(b) Add a WHERE clause that repeats the correlated sub-query.
Neither is efficient, and (b) is a maintenance problem, too: if tyou ever change the conditions, you have to make the same change in two places.
By the way, this site compresses whitespace by default.
if you need to post formatted code or output, then type these 6 characters:
(small letters only, inside curly brackets) before and after sections of formatted text, to preserve spacing. -
Oracle 11G Copying a table using execute immediate
I want to copy the contents of one table into another using execute immediate.
This keeps failing with the following error
ORA-00903: invalid table name
ORA-06512: at "TABLE_COPY", line 6
ORA-06512: at line 8
create or replace
procedure TABLE_COPY(
TABLE1 varchar2,
TABLE2 varchar2)
is
begin
execute immediate 'insert into '||TABLE2||' (select * from '||TABLE1||')';
end;
Edited by: user9213000 on 24-Jan-2013 07:38user9213000 wrote:
I want to copy the contents of one table into another using execute immediate.
This keeps failing with the following error
ORA-00903: invalid table name
ORA-06512: at "TABLE_COPY", line 6
ORA-06512: at line 8
create or replace
procedure TABLE_COPY(
TABLE1 varchar2,
TABLE2 varchar2)
is
begin
execute immediate 'insert into '||TABLE2||' (select * from '||TABLE1||')';
end;
Edited by: user9213000 on 24-Jan-2013 07:38The standard advice when (ab)using EXECUTE IMMEDIATE is to compose the SQL statement in a single VARCHAR2 variable
Then print the variable before passing it to EXECUTE IMMEDIATE.
COPY the statement & PASTE into sqlplus to validate its correctness. -
Hi,
I'm running 32-bit version of SQL Developer v. 3.2.20.09 build 09.87, and I used the built in context menu (right-clicking from the schema browser) today to copy a table. However, none of the comments copied. When I dug into the PL/SQL that the menu-item is using, I realized that it fails because it doesn't handle single quotes within the comment string.
For example, I have a table named WE_ENROLL_SNAPSHOT that I wanted to copy as WE_ENROLL_SNAPSHOT_V1 (within same schema name)
1. I right-clicked on the object in the schema browser and selected Table > Copy...
2. In the pop-up Copy window, I entered the new table name "WE_ENROLL_SNAPSHOT_V1" and ticked the box for "Include Data" option. -- The PL/SQL that the menu-command is using is in the "SQL" tab of this window. This is what I extracted later for testing the issue after the comments did not copy.
Result: Table and data copied as-expected, but no column or table comments existed.
I examined the PL/SQL block that the pop-up window issued, and saw this:
declare
l_sql varchar2(32767);
c_tab_comment varchar2(32767);
procedure run(p_sql varchar2) as
begin
execute immediate p_sql;
end;
begin
run('create table "BI_ETL".WE_ENROLL_SNAPSHOT_V1 as select * from "BI_ETL"."WE_ENROLL_SNAPSHOT" where '||11||' = 11');
select comments into c_tab_comment from sys.all_TAB_comments where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT' and comments is not null;
run('comment on table BI_ETL.WE_ENROLL_SNAPSHOT_V1 is '||''''||c_tab_comment||'''');
for tc in (select column_name from sys.all_tab_cols where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT')
loop
for c in (select comments from sys.all_col_comments where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT' and column_name=tc.column_name)
loop
run ('comment on column BI_ETL.WE_ENROLL_SNAPSHOT_V1.'||tc.column_name||' is '||''''||c.comments||'''');
end loop;
end loop;
EXCEPTION
WHEN OTHERS THEN NULL;
end;
The string of the table comment on WE_ENROLL_SNAPSHOT is this:
WBIG table of frozen, point-in-time snapshots of Enrolled Students by Category/term/pidm. "Category" is historically, and commonly, our CENSUS snapshot; but, can also describe other frequencies, or categorizations, such as: End-of-Term (EOT), etc. Note: Prior to this table existing, Census-snapshots were stored in SATURN.SNAPREG_ALL. All FALL and SPRING term records prior-to-and-including Spring 2013 ('201230') have been migrated into this table -- EXCEPT a few select prior to Fall 2004 (200410) records where there are duplicates on term/pidm. NO Summer snapshots existed in SNAPREG_ALL, but were queried and stored retroactively (including terms prior to Spring 2013) for the purpose of future on-going year-over-year analysis and comparison.
Note the single quotes in the comment: ... ('201230')
So, in the above PL/SQL line 11 grabs this string into "c_tab_comment", but then line 12 fails because of the single quotes. It doesn't know how to end the string because the single quotes in the string are not "escaped", and this messes up the concatenation on line 12. (So, then no other column comments are created either because the block throws an error, and goes to line 22 for the exception and exits.)
When I modify the above PL/SQL as my own anonymous block like this, it is successful:
declare
c_tab_comment VARCHAR2(32767);
begin
SELECT REPLACE(comments,chr(39),chr(39)||chr(39)) INTO c_tab_comment FROM sys.all_TAB_comments WHERE owner = 'BI_ETL' AND table_name = 'WE_ENROLL_SNAPSHOT' AND comments IS NOT NULL;
EXECUTE IMMEDIATE 'comment on table BI_ETL.WE_ENROLL_SNAPSHOT_V1 is '''||c_tab_comment||'''';
for tc in (select column_name from sys.all_tab_cols where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT')
loop
for c in (select REPLACE(comments,chr(39),chr(39)||chr(39)) comments from sys.all_col_comments where owner = 'BI_ETL' and table_name = 'WE_ENROLL_SNAPSHOT' and column_name=tc.column_name)
loop
EXECUTE IMMEDIATE 'comment on column BI_ETL.WE_ENROLL_SNAPSHOT_V1.'||tc.column_name||' is '||''''||c.comments||'''';
end loop;
end loop;
EXCEPTION
WHEN OTHERS THEN NULL;
end;
On lines 4 and 8 I wrapped the "comments" from sys.all_tab_comments and sys.all_col_comments with a replace command finding every chr(39) and replacing with chr(39)||chr(39). (On line 8 I also had to alias the wrapped column as "comments" so line 10 would succeed.)
Is this an issue with SQL Developer? Is there any chance that the menu-items can handle single quotes in comment strings? ... And, of course this makes me wonder which other context menu commands in the tool might have a similar issue.
Thoughts?
thanks//jacobPaigeT wrote:
I know about quick drop, but it isn't helpful here. I want to be able to right click on a string or array wire, navigate to the string or array palette, and select the corresponding "Empty?" comparator. In this case, since I do actually know where those functions live, and I'm already using my mouse to right click on the wire, typing ctrl-space to open quick drop and then typing in the function name is actually more work than navigating to it in the palette. It would just be nice to have it on hand in the location I naturally go to look for it the first time.
I don't agree with this work flow. Right hand on mouse, left hand on home keys. Pressing CTRL + Space is done with the left hands, and then you could assign "ea" to "Empty Array" both of which is accessible with the left hand. Darren posted a bunch of great shortcuts for the right handed developer.
https://decibel.ni.com/content/docs/DOC-20453
This is much faster than waiting for any right click menu navigation, even if it is found in the suggested subpalette.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously. -
Want to copy Delivery address of one line item in shopping cart to all item
Hi Experts,
We are upgrading from SRM 5.0 to SRM 7.0,In SC Creation We want to copy Delivery address of one line item in shopping cart to all line items in Shopping cart by clicking Change All Items button.This is custom button we added this button and we had written code to achieve the functionality but it is not working.This is same like Change All Items button in Account Assigment for copy accont details of one line item to all other line items in SC.
Web Dynpro Component:/SAPSRM/WDC_UI_DO_SHIPTO
Web Dynpro View:V_DODC_SHIPTO
Thanks,
Aarthi.Hi Prasad,
Our customer needs that button,they want whenever they are clicking the button delivery address should copy to all line items.
In my action ONCHANGE_ALL_ITEMS i called this method
wd_this->mo_dodm_shipto->zchange_all_items( ).
zchange_all_items( ) is implemented in class /SAPSRM/CL_CH_WD_DODM_SHIPTO.
the code i wrote inside zchange_all_items( )
*Error
DATA: LX_PDO_ABORT TYPE REF TO /SAPSRM/CX_PDO_ABORT, " Class for Fatal error caught by PDO Layer
LX_PDO_ERROR TYPE REF TO /SAPSRM/CX_PDO_ERROR. " Class for PDO General Exception
Object Instances
DATA: LO_MSG_CONSUMER TYPE REF TO /SAPSRM/IF_PDO_MSG_CONSUMER,
LO_PDO_SHIPTO TYPE REF TO /SAPSRM/IF_PDO_DO_PARTNER.
Context-Data
DATA: lte_cll_shipto TYPE /sapsrm/if_ch_wd_set_facade=>gt_guid_element,
loe_cll_shipto TYPE REF TO /sapsrm/if_ch_wd_set_element.
Field Symbols
FIELD-SYMBOLS <lse_cll_shipto> LIKE LINE OF lte_cll_shipto.
DATA : lo_pdo_acc TYPE REF TO /sapsrm/if_pdo_do_acct_assgmnt.
DATA : ls_shipto_cll type /SAPSRM/S_CLL_SHIPTO,
lt_pdo_partnerdetails TYPE bbp_pdt_partner,
ls_pdo_partnerdetails TYPE bbp_pds_partner,
LV_GUID TYPE BBP_GUID,
lv_item_guid type bbp_guid,
lv_filled TYPE wdy_boolean.
*exceptions
DATA : LX_ABORT TYPE REF TO /SAPSRM/CX_PDO_ABORT.
*Constants
CONSTANTS : LC_OBJECT_ID TYPE CRMT_SUBOBJECT_CATEGORY_DB VALUE 'BUS2121001',
LC_ADDR_ORIGIN TYPE /SAPSRM/S_CLL_SHIPTO-ADDR_ORIGIN VALUE 'B'.
IF LV_FILLED = ABAP_TRUE.
Downcasting to shipto
LO_PDO_SHIPTO ?= MO_PDO.
insert the clipboard into facade and update and submit update
me->/sapsrm/if_cll_do_mapper~insert_from_clipboard( io_set_facade = mon_cll_set_facade ).
Add new Accounting entries.
lte_cll_shipto = mon_cll_set_facade->get_data_elements( ). "get all elements from the context
LOOP AT lte_cll_shipto ASSIGNING <lse_cll_shipto>.
loe_cll_shipto = <lse_cll_shipto>-set_element.
loe_cll_shipto->get_static_attributes( IMPORTING rv_attributes = ls_shipto_cll ).
Map ui-structure to pdo-structure
MOVE-CORRESPONDING ls_shipto_cll TO ls_pdo_partnerdetails.
IF LS_SHIPTO_CLL-PARTNER_FCT = mv_part_func.
LS_PDO_PARTNERDETAILS-PARTNER_FCT = ''.
ELSE.
LS_PDO_PARTNERDETAILS-PARTNER_FCT = LS_SHIPTO_CLL-PARTNER_FCT.
ENDIF.
IF ls_pdo_partnerdetails-del_ind NE 'X'.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_16 = ls_pdo_partnerdetails-p_guid.
mv_acc_guid_split = ls_pdo_shipto-guid .
IF mo_scope = 1.
ls_pdo_partnerdetails-p_guid = mon_cll_set_facade->get_bo_guid( ).
ELSE.
ls_pdo_partnerdetails-p_guid = mo_parent_bo_mapper->items_get_lead_selection( ).
ENDIF.
APPEND ls_pdo_partnerdetails TO lt_pdo_partnerdetails.
ENDIF.
CLEAR : ls_pdo_partnerdetails, ls_shipto_cll.
ENDLOOP.
Add New items to PDO
IF NOT lt_pdo_partnerdetails[] IS INITIAL.
TRY.
LO_PDO_SHIPTO->update_item_partners( EXPORTING it_partner = lt_pdo_partnerdetails
iv_item_guid = lv_item_guid
CHANGING co_message_handler = mo_pdo_message_consumer ).
CATCH /sapsrm/cx_pdo_abort INTO lx_pdo_abort.
mo_cll_message_handler->set_abort( io_pdo_abort_exception = lx_pdo_abort ).
CATCH /sapsrm/cx_pdo_error INTO lx_pdo_error.
mo_cll_message_handler->add_exception( io_pdo_error_exception = lx_pdo_error ).
ENDTRY.
Update PDO with the changed data.
TRY.
mo_pdo->submit_update( ).
CATCH /sapsrm/cx_pdo_abort INTO lx_pdo_abort.
mo_cll_message_handler->set_abort( io_pdo_abort_exception = lx_pdo_abort ).
CATCH /sapsrm/cx_pdo_error INTO lx_pdo_error.
mo_cll_message_handler->add_exception( io_pdo_error_exception = lx_pdo_error ).
ENDTRY.
Fire refresh of DO Mappers registered for refresh since the item table has acc related data.
mo_parent_bo_mapper->fire_event_refresh( iv_perform_updates = abap_false ).
ENDIF.
ENDIF.
Thanks,
Aarthi. -
How to copy all tables, triggers, etc from one user schema to another
Hello everybody!
I am searching for a QUERY or Stored Procedure to copy the tables of one user schema to another schema.
Should look kind of: Copy (Select * from all_objects where owner = 'UserIwantToCopyFrom') to user = 'UserIwantToCopyTO'
I am sure that my example is rubbish but I tried to explain what I want to do.
So is there a chance to do that within sql-code? I have to build a template of a user schema with hundreds of tables, triggers, etc and copy it to several other user schemas.
Thanks for your advice!
JanThere are numerous examples available.
What you typically will want to do is:
For the export use the job_mode => 'SCHEMA' option
Export example
http://www.oracle-base.com/articles/10g/OracleDataPump10g.php
DECLARE
l_dp_handle NUMBER;
l_last_job_state VARCHAR2(30) := 'UNDEFINED';
l_job_state VARCHAR2(30) := 'UNDEFINED';
l_sts KU$_STATUS;
BEGIN
l_dp_handle := DBMS_DATAPUMP.open(
operation => 'EXPORT',
job_mode => 'SCHEMA',
remote_link => NULL,
job_name => 'EMP_EXPORT',
version => 'LATEST');
DBMS_DATAPUMP.add_file(
handle => l_dp_handle,
filename => 'SCOTT.dmp',
directory => 'TEST_DIR');
DBMS_DATAPUMP.add_file(
handle => l_dp_handle,
filename => 'SCOTT.log',
directory => 'TEST_DIR',
filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
DBMS_DATAPUMP.metadata_filter(
handle => l_dp_handle,
name => 'SCHEMA_EXPR',
value => '= ''SCOTT''');
DBMS_DATAPUMP.start_job(l_dp_handle);
DBMS_DATAPUMP.detach(l_dp_handle);
END;
/for the import you will have to use the remap_schema option with:
DBMS_DATAPUMP.METADATA_REMAP (
handle IN NUMBER,
name IN VARCHAR2,
old_value IN VARCHAR2,
value IN VARCHAR2,
object_type IN VARCHAR2 DEFAULT NULL);There are much more details in the document that Thierry provided. -
In Pages, How to copy a table? How to make a table as a Header?
Hi, How can I copy a table? I selected it , command c, then clicked where I wanted the copy, and clicked command v. Only the text from the table was copied. The table outline did not paste.
I would like the table to appear under the Header of every page of the document. So I tried placing the table in the Header. Worked for the first page, but did not appear in the Header of the second page ... just a really big Header box.
Thank you for your help.
margaretfrommbHi, margaretfromn
I'm sorry this reply may not solve your problem. I have the same problem as you.
What I have found that tables can be copied by using "option+drag" WITHIN the document. But, the same technique do not work across documents.
In Pages '09, there is a function to convert text to table, but it has disappeared in Pages 5 as the other convenient functions.
Cheers, -
Using Provide-endprovide copy internal table
Hi,
I have problem that is if i want to copy the data from infotype to internal table means
Provide * from p9012 between pn-begda and pn-endda.
if p9012-zz_client_c EQ itemp-z_client_c.
MOVE: p9012-begda TO it9012-begda,
p9012-zz_dept_c TO it9012-z_dept_c,
SORT IT9012 BY z_dept_c.
append it9012.
endif.
endprovide.
this one not copying data from infotype to internaltable.
what i can do?
Thanks,
Regards,
NandhaHI Use this code example..
plz reward poins if it helps you..
& Report ZSAPHR_PNP
Report ZSAPHR_PNP.
TABLES : PERNR.
*Infotype Declaration
INFOTYPES: 0002, "PERSONAL DATA
0006, "ADDRESS
0008, "
0000, "
0001. "ACTIONS
DATA : BEGIN OF ITAB OCCURS 10, "INTERNAL TABLE DECLARATION
NACHN LIKE P0002-NACHN,
VORNA LIKE P0002-VORNA,
GESCH LIKE P0002-GESCH,
GBDAT LIKE P0002-GBDAT,
FAMST LIKE P0002-FAMST,
HSNMR LIKE P0006-HSNMR,
STRAS LIKE P0006-STRAS,
LOCAT LIKE P0006-LOCAT,
PSTLZ LIKE P0006-PSTLZ,
LAND1 LIKE P0006-LAND1,
PLANS LIKE P0001-PLANS,
ORGEH LIKE P0001-ORGEH,
BET01 LIKE P0008-BET01,
WAERS LIKE P0008-WAERS,
PERNR LIKE P0000-PERNR,
END OF ITAB.
DATA: G_REPID LIKE SY-REPID."Report name
INITIALIZATION.
G_REPID = SY-REPID.
PNPTIMED = 'D'.
**********************************************START OF
SELECTION*****************************************
START-OF-SELECTION.
GET PERNR.
PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA.
ITAB-PERNR = P0000-PERNR.
ITAB-NACHN = P0002-NACHN.
ITAB-VORNA = P0002-VORNA.
IF P0002-FAMST = '0'.
ITAB-FAMST = 'S'.
ELSE.
ITAB-FAMST = 'M'.
ENDIF.
ITAB-FAMST = P0002-FAMST.
IF P0002-GESCH = '1'.
ITAB-GESCH = 'M'.
ELSE.
ITAB-GESCH = 'F'.
ENDIF.
ITAB-GBDAT = P0002-GBDAT.
ITAB-HSNMR = P0006-HSNMR.
ITAB-STRAS = P0006-STRAS.
ITAB-LOCAT = P0006-LOCAT.
ITAB-PSTLZ = P0006-PSTLZ.
ITAB-LAND1 = P0006-LAND1.
ITAB-ORGEH = P0001-ORGEH.
ITAB-PLANS = P0001-PLANS.
ITAB-BET01 = P0008-BET01.
ITAB-WAERS = P0008-WAERS.
APPEND ITAB.
ENDPROVIDE.
END-OF-SELECTION. -
Copying multiple tables from On Premises SQL to Azure Blob
Hello Team,
Using ADF, I wanted to move data from On Premises dataset having multiple tables to Azure Blob. Can you please provide some help or share some samples ?
Thanks,
EshetuYou would follow this sample:
http://azure.microsoft.com/en-us/documentation/articles/data-factory-use-onpremises-datasources/
Essentially you use a Data Management Gateway service to live on premises to talk to SQL Server or to NTFS file system, to copy up to WASB blob storage.
I don't know the bit about multiple tables in one JSON document, but I believe it can process a folder of files by giving the folder path instead of the full file name. You may have to use multiple data sets to copy multiple tables.
Thanks, Jason
Didn't get enough help here? Submit a case with the Microsoft Customer Support teams for deeper investigation - Azure service support: https://manage.windowsazure.com/?getsupport=true For on Premise software support go here instead: http://support.microsoft.com/select/default.aspx?target=assistance
Maybe you are looking for
-
I need a back up browser or I cannot connect on the internet w my iMac
-
How do I install a game into a Firefox desk top, I am new to all this
I have a Firefox desk top on a Windows machine, and I have MS Combat Flight Simulator game I want to install on the desk top. I am brand new in computers, and in the tool bar in Firefox I see nowhere a place to put a URL. Help.. i
-
Acrobat Pro XI Exception Type: EXC_CRASH (SIGABRT)
The application crashes whenever i use every kind of comment or remarks. How can i resolve??? Please help! The error report is this: rocess: AdobeAcrobat [603] Path: /Applications/Adobe Acrobat XI Pro/Adobe Acrobat Pro.app/Contents/MacOS/A
-
QST:: How do I embed flash into a hosting C++ app??
hi there i want to write a windows app that embeds flash. the app will be written in c++ (visual c++), and there needs to be communication (two-way) between the c++ app and the flash movie. is this possible, and how do i do it? does it involve using
-
hello, i want to use a query as infoprovider for a dso. but when i checked the properties of the query, this option is disabled. i wonder why. can anyone please give me some idea why's that ? please check the attachment