How to Replicate Selected Tables in a Schema to other Schema..
Hi,
In my database i have two schemas having 1000 tables in each.
In these two schemas the table structure is same.
I need to replicate nearly 100 tables out of 1000 tables in the schema.
Can any one help me in this issue.
Thanks ,
Ray..
Hi Ray,
You can do this by using the dbms_streams_adm.rename_table package on the destination/target where you are running the apply process. Create the RULE for the apply on the target using the same owner as the source. Then, run the following on the db with the apply:
DECLARE
v_dmlrule VARCHAR2(128);
BEGIN
-- this will get the name of the rule you wish to modify.
select rule_name into v_dmlrule from dba_rules where rule_owner='STRMADMIN' and RULE_CONDITION LIKE '%TABLENM%';
dbms_output.put_line('Rule Name :'||v_dmlrule);
DBMS_STREAMS_ADM.RENAME_TABLE(
rule_name => v_dmlrule,
from_table_name => '"FROMSCHEMA"."TABLENM"',
to_table_name => '"TOSCHEMA"."TABLENM"',
step_number => 0,
operation => 'ADD');
END;
Regards.
Similar Messages
-
How to read a table from one host to other host
Hi Everybody,
How to read a table from one host to other host.
For Example,
a/a@abcd - host 1
b/b@xyz - host 2
suppose im having a table called emp in a/a@abcd
i want to read the table emp in b/b@xyz
how to do this.??
I know that we have to create a dblink...after that how to proceed.
Plz help..
Thanks in Advance,
Gitaconnected as scott/tiger@test
SQL>
CREATE DATABASE LINK local
CONNECT TO admin IDENTIFIED BY pinnet
USING 'pinnet';
Database link created.
sql>
select count(*) from
users@local;
COUNT(*)
16
Message was edited by:
jeneesh -
How to see the Table Names & Field Names by other than F1 help
Hi Experts
How to see the Table Names & Field Names by other than F1 help, & How to see the List of MM Table Names.
RgdsThe only option to see the active table/ field name is through F1 --> Technical Information. Apart from this, you can use any 3rd part application like GUIex (INbuilt in SAP ECC 6.0 ... can be activated by clicking on the tri-color button on the top right), but you need technical knowledge to understand the information. As far consolidated list of MM tables is concerned, SAP don;t provide you the same at one place, it experience and knowledge which help you in this regard. For your immediate reference MM tables are as under :
EBAN - Purchase Requisition
EBKN - Purchase Requisition Account Assignment
EBUB - Index for Stock Transport Requisitions for Materi
EINA - Purchasing Info Record: General Data
EINE - Purchasing Info Record: Purchasing Organization D
EIPA - Order Price History: Info Record
EKAB - Release Documentation
EKAN - Vendor Address: Purchasing Document
EKBE - History per Purchasing Document
EKBEH - Removed PO History Records
EKBZ - History per Purchasing Document: Delivery Costs
EKBZH - History per Purchasing Document: Delivery Costs
EKEH - Scheduling Agreement Release Documentation
EKEK - Header Data for Scheduling Agreement Releases
EKES - Vendor Confirmations
EKET - Scheduling Agreement Schedule Lines
EKETH - Scheduling Agreement Schedules: History Tables
EKKI - Purchasing Condition Index
EKKN - Account Assignment in Purchasing Document
EKKO - Purchasing Document Header
EKPA - Partner Roles in Purchasing
EKPB - "Material Provided" Item in Purchasing Document
EKPO - Purchasing Document Item
EKPV - Shipping-Specific Data on Stock Tfr. for Purch. D
EKRS - ERS Procedure: Goods (Merchandise) Movements to b
EKUB - Index for Stock Transport Orders for Material
EORD - Purchasing Source List
EQUK - Quota File: Header -
How can we copy table from one schema to other schema
Hi,
I have create one table in one schema and i want to copy it to other schema.How we can copy table from one schema to other schemaHi,
You can try something like this :-
SQL> CONNECT SYS/SYS123@SERVER AS SYSDBA
Connected.
SQL> CREATE USER TEST_1 IDENTIFIED BY TEST_1;
User created.
SQL> CREATE USER TEST_2 IDENTIFIED BY TEST_2;
User created.
SQL> GRANT CONNECT,RESOURCE,DBA TO TEST_1;
Grant succeeded.
SQL> GRANT CONNECT,RESOURCE,DBA TO TEST_2;
Grant succeeded.
SQL> CONNECT TEST_1/TEST_1@SERVER
Connected.
SQL> CREATE TABLE TEST_COPY ( TEST_COL NUMBER );
Table created.
SQL> INSERT INTO TEST_COPY VALUES ( 1 );
1 row created.
SQL> INSERT INTO TEST_COPY VALUES ( 2 );
1 row created.
SQL> COMMIT;
Commit complete.
SQL> GRANT ALL ON TEST_COPY TO TEST_2;
Grant succeeded.
SQL> CONNECT TEST_2/TEST_2@SERVER
Connected.
SQL> CREATE TABLE TEST_COPY AS SELECT * FROM TEST_1.TEST_COPY;
Table created.
SQL> SELECT * FROM TEST_COPY;
TEST_COL
1
2Regards,
Sandeep -
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. -
How to replicate cluster table into BW on HANA using SLT?
Hi Members,
We have a requirement to replicate cluster table from SAP ECC (Ex:BSEG) into BW 7.4 on HANA using SLT. We know that HANA SLT is capable of replicating cluster table but it looks like BW-SLT is not capable of doing the same.
Please clarify on this and any documentation in this regard will be very helpful.
Also wondering if the current release of BW-SLT can be used to replicate Cluster tables from SAP?
Thanks & Regards
Shankar ChintadaHi Shankar,
I dont understand , why you have doubt on BW-SLT???
Using SLT you can replicate the tables pool or cluster .
If you have more specific requirment please share the details
As per above information in your enviorment it is possible.
You can check below thread for more infor.
SLT: Mass Tables for Replication to HANA
BR
AKJ -
How does Apex access and manage db objects in other schemas?
I'm looking for a description of how Apex accesses and manages database objects in other schemas.
I'm sure I've seen such a description somewhere earlier but am unable to find it again...Hi Rene,
When you are connected to sqlworkshop, it is basically connected to the sceham owner of the workspace. If you execute the query
select sys_context( 'userenv', 'current_schema' ), user, username from user_users;you would see the schema and user(currently connected) and schema owner through which you have logged in. The user will have all the privileges granted to schema owner. So basically you get connected through APEX_PUBLIC_USER and it has all the privileges of the schema owner.
In order to run scripts in another schema you would need grants on other schema same like you are connected to user A through sqlplus and wants to create objects in schema B. For example lets say you want to create a table in schema B and you have create table privileges in scehma B , you can execute command create table B.emp as select * from A.emp;
I hope this answers your question.
Regards,
Manish -
How to display selected table fields in ALV report.
Hi,
I am displaying data from table EKPO using ALV through this query.
select * from ekpo into table itab_ekpo up to 25 rows.
bt if i need to display selected fields like
select ebeln matnr netpr from ekpo into table itab_ekpo up to 25 rows.
IT gives error GETWA_NOT_ASSIGNED.
FIELD SYMBOL HAS NOT YET BEEN ASSIGNED
CAN ANYONE PLZ HELP ME.Hi ,
I am pasting the code in which i am getting the error.Plz help.
REPORT ZHALV.
tables:ekpo.
data itab_ekpo type ekpo occurs 100 with header line.
types: begin of itab_new,
f_ebeln type ekpo-ebeln,
f_matnr type ekpo-matnr,
f_netpr type ekpo-netpr,
end of itab_new.
data itab1 TYPE STANDARD TABLE OF itab_new initial size 0.
type-pools: slis.
DATA: lt_fieldcat TYPE slis_t_fieldcat_alv,
lf_fieldcat TYPE slis_fieldcat_alv.
DATA: ws_repid TYPE sy-repid VALUE 'ZHALV'.
DATA: l_layout TYPE slis_layout_alv.
selection-screen Begin of block block1 with frame title text-111.
select-options : S_EBELN for EKPO-EBELN.
selection-screen end of block block1.
INITIALIZATION.
start-of-selection.
select ebeln matnr netpr from ekpo into table itab1 up to 10 rows WHERE EBELN IN S_EBELN.
*select * from ekpo into table itab_ekpo up to 25 rows.
PERFORM build_fieldcatalog.
PERFORM build_layout.
PERFORM GET_DETAILS.
end-of-selection.
*& Form build_fieldcatalog
text
FORM build_fieldcatalog .
PURCHASING DOCUMENT NUMBER
CLEAR lf_fieldcat.
lf_fieldcat-fieldname = 'EBELN'.
lf_fieldcat-ref_tabname = 'EKKO'.
lf_fieldcat-ref_fieldname = 'EBELN'.
MATERIAL NUMBER
CLEAR lf_fieldcat.
lf_fieldcat-fieldname = 'MATNR'.
lf_fieldcat-ref_tabname = 'EKPO'.
lf_fieldcat-ref_fieldname = 'MATNR'.
APPEND lf_fieldcat TO lt_fieldcat.
NET PRICE IN PURCHASING DOCUMENT
CLEAR lf_fieldcat.
lf_fieldcat-fieldname = 'NETPR'.
lf_fieldcat-ref_tabname = 'EKPO'.
lf_fieldcat-ref_fieldname = 'NETPR'.
lf_fieldcat-cfieldname = 'WAERS'.
lf_fieldcat-do_sum = 'X'.
APPEND lf_fieldcat TO lt_fieldcat.
ENDFORM. " build_fieldcatalog
*& Form GET_DETAILS
text
FORM GET_DETAILS.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = ws_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME = 'EKPO'
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = lt_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = 'A'
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = itab1
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
WRITE: 'SY-SUBRC: ', SY-SUBRC .
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*append itab_ekpo to i_tab.
ENDFORM. "GET_DETAILS -
How do u select tables data using the EBS web page?
Hi Friends,
I am in EBS 11i web pages url > http://vision.abc.com:8000/
using sysadmin account.
Is there a counter part web based module/menu to display table data ?
Like
select * from fnd_tables;
or
select * from po_vendors;
something like this that allow display of data
Thanks a lotyes but I want a web-based tool that uses URL not like the client server ones. :) which are not allowed by security audit. As a development tools, I believe SQL Developer and TOAD (in addition to SQL*Plus) are what you need (though these are client/server tools).
Oracle Enterprise Manager is a good monitoring tool (but not for development), you as a DBA can use EM and access it through a URL.
I might not necessarily be using sqlplus command. but a stored program like the concurrent fnd programs.There is no standard concurrent request that can help in achieving this. -
How to Track the table using Trigger or any other Object
Hi Folks
I need to audit Inserts, deletions, updates to inserted into other tracking table. I was planning on using a trigger to do this,
Can you please help me how can I wright code for trigger for this. or else using any other object we can do this operation.
can you please help me thanks in advance.
Thank in advance.Also you can use an OUTPUT clause ( need to modify your DML operations)
create table itest ( i int identity not null primary key, j int not null unique )
create table #new ( i int not null, j int not null)
insert into itest (j)
output inserted.i, inserted.j into #new
select o.object_id from sys.objects as o
select * from #new
drop table #new, itest;
go
The example below shows code that uses OUTPUT clause in UPDATE and DELETE statements to insert rows into an audit table.
create table t ( i int not null );
create table t_audit ( old_i int not null, new_i int null );
insert into t (i) values( 1 );
insert into t (i) values( 2 );
update t
set i = i + 1
output deleted.i, inserted.i into t_audit
where i = 1;
delete from t
output deleted.i, NULL into t_audit
where i = 2;
select * from t;
select * from t_audit;
drop table t, t_audit;
go
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Multiple plots in graph-How can I select which plot appears before the others
I am displaying two plots in a graph and one plot tends to cover the othe one. How can I make the hidden plot appear in front of the other one?
the above paragraph is illustrated in the attached image.
Joe
Attachments:
Snap1.gif 3 KB -
HOW TO DROP INDEX OF OTHER SCHEMA
hi,
I want to know how can we refer to objects that are of other schema. i need to drop an index of a table that belongs to some other schema and so if i write :
drop tablename.indexname; - its not working.
Please Help
ThanksYou are trying to drop an index on a table that belong to a different schema you are connected to.
Do not add the table name to your command.
Simply try
drop index schema_name.index_name;
Nico P. -
hi all,
can anyone tell me how to use selection table with option of NE?
I wrote a code like
L_t_RANGE-SIGN = 'I'.
L_t_RANGE-option = 'NE'.
L_t_RANGE-low = 'Y'.
But the error message says SIGN 'I' with option 'NE' is not allowed. Neigher does 'E'.
Thanks.
LindaI actually don't have a problem with either. This program works really well. Run it and check the selection screen, check material, you can see the fields there in multiple selection.
report zrich_0002 .
data: iSEL TYPE TABLE OF RSPARAMS.
data: xsel type rsparams.
xsel-SELNAME = 'MATNR'.
xsel-KIND = 'S'.
xsel-SIGN = 'I'.
xsel-OPTION = 'EQ'.
xsel-LOW = '000000000040000692'.
append xsel to isel.
xsel-SELNAME = 'MATNR'.
xsel-KIND = 'S'.
xsel-SIGN = 'I'.
xsel-OPTION = 'NE'.
xsel-LOW = '000000000040000693'.
append xsel to isel.
xsel-SELNAME = 'MATNR'.
xsel-KIND = 'S'.
xsel-SIGN = 'E'.
xsel-OPTION = 'EQ'.
xsel-LOW = '000000000040000694'.
append xsel to isel.
submit RM07DOCS
via selection-screen
with selection-table isel
and return.
This program runs transaction MB51
Regards,
Rich Heilman -
How to get selected values from selectManyCheckbox ?
Hi,
I am a SOA developer and using 'Auto generated adf form' of Human Task. I did some customization in the form. I need to show one dynamic list (contains multiple string values) on a form, from which user will select desired values. For this I have used <af:selectManyCheckbox> adf component.
It has generated code as follows...
<af:selectManyCheckbox value="#{bindings.Response.inputValue}"
label="#{bindings.Response.label}"
id="smc1">
<f:selectItems value="#{bindings.Response.items}" id="si9"/>
</af:selectManyCheckbox>
I am able to show list on a form and can select multiple values also.
Now, I want the multiple selected values back in my BPEL process. I need only those values which are selected by user.
Currently I am getting complete list as it is back in BPEL process.
Please help me out..!
Thanks..
SurajUnwinding ADF: How to retrieve Selected Items from selectManyCheckbox using ValueChnageListener
-
Hello,
I want to model the following situation in SQLD DM:
- 2 schema's
- in 1 schema I define a view
- in the other schema I want to refer to this view in a view
Questions:
- Do I create each schema as a design or as a relational model in one design?
- How can I refer to the view of the other schema in the Query Builder?
SQLD DM version 3.3.0.734
Thanks in advance,
JoopHi Joop,
Do I create each schema as a design or as a relational model in one design?As a relational model in one design.
How can I refer to the view of the other schema in the Query BuilderYou an define a schema for view you are creating. If objects used in view definition belong to another schema they are include with schema name in generated select statement. By default objects in the same schema (as the view) are not prefixed with schema name - if you want schema name to be included then check "Include schema name in Query" check box on view dialog.
Philip
Maybe you are looking for
-
How do I get windows to connect to the internet on my iMac
How do I get Windows 7 Home Premium to connect to my existing internet connection, on my iMac (Lion 10.7.3)? The installation of the Windows 7 using Bootcamp went fine, up to the point of getting connected to the internet. My iMac side of the parti
-
Post Author: Pensions CA Forum: Charts and Graphs I've been able to rotate all of the components of my pie chart 90 degrees except the legend. I can't find a place to turn the legend, does anybody know whether it's possible rotate the legend on a pie
-
What GUI to use web application designer in BI 7.0 without support package
I use BI in my ECC 6.0 system. I use tried both GUI 7.1 and GUI 6.40 to logon web application designer. But system display the message please logon to a Netweaver BI 7.x system. System A11 does not have a mimumium version required 7007. My system see
-
Change of values in the webi report
Hi webi report in QA is working fine . but after moving to production the values have changed. but bex report in production has got correct values. these reports have graphs attached to them. evn there is a change in a graph what can be the reason fo
-
Please help me out to design better exception handling framework.