Apex 4.2: migrating db tables between servers - methodology
Hello
I’m just about to start migrating DB tables from apex.oracle.com onto our local server (by copying the CREATE statement from the Object Browser > SQL tab and then later exporting/importing data via Excel).
Can anyone confirm that this is the best approach as there are ~45 tables and I wouldn’t want to later discover there was a quick way to export all the tables in one go (they all begin “AA_” so I had hoped I could refer to them collectively in one mega export).
Similarly it would be good to know if there is a way to generate SQL that both CREATE and INSERT statements in one go.
Thanks
Emma
Edited by: emma-apex on 22-Apr-2013 08:17
Hi,
Documentation might help
http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/deploy_how_to.htm#BABFBBEE
Regards,
Jari
My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai
Similar Messages
-
HRMS Payroll: Migrating Element Links between Environments/Instances
Hi,
I need to migrate element links between environments i.e, I need to move my element links from one instance to another.
Apart from doing this manually or using dataloader, what are the other options/best practices that I can look at?
Regards,
Santhosh JoseWe've previously done this successfully using Data Pump to process the migration of Element Types, Input Values, Extra Info and Links - once set up it works very smoothly, but it does require quite a bit of setup so I'd only advise using if you're migrating a lot of elements several times.
Data Pump is just a set of tables and concurrent programs that wrap around Oracle API's for migration of data/setup.
The setup involves getting data into these tables...
Key tables are:
hr_pump_batch_lines
hr_pump_batch_headers
hr_pump_batch_line_user_keys
Using API's like:
hrdpp_create_element_type.insert_batch_lines
hrdpp_create_element_extra_inf.insert_batch_lines
hrdpp_create_element_link.insert_batch_lines
hrdpp_create_input_value.insert_batch_lines
hrdpp_update_input_value.insert_batch_lines
Conc Program: Data Pump Engine
There should be plenty of documentation around the net and MoS about this if you want to have a read.
Alternatively you can call the API's yourself.
or, you can have a go with iSetup - we tested this briefly but didn't get too far with it, several quirky issues with loading Work Structure data so went back to using Data Pump.
Regards, Jay -
Communication between servers on different FIs
Just want to verify communication between UCS servers on same chassis but having active vNICs on different FIs (Diagram attached). I suppose all commuication between server-A & server-B will happen through Layer 2 switch as server-A will generate an ARP request for Server-B, that will be passed over to FI-A and then to L2 switch down to FI-B, where server-B will respond back with it's MAC that will then be passed to Server-A via FI-B to L2 switch to FI-A.I don't expect any traffic between servers A & B be routed via firewall? Is there anything I need to be careful about in this design? Going forward we will have multiple subinterfaces on the firewall for different VLANs and all servers will use Firewall as default gateway.
you may want to look at the throughput of your firewall for server-server traffic in different VLANs. If your L2 switch is 10G but your firewall is only 1G then you could have a potential bottle neck.
-
How to pass internal table between views
Hello Experts,
How to pass an internal table between views? I have followed some steps but its showing an error.
i have created a table type of ZTTYPE_VBAP and line type VBAP.
I have declared in component controllers attribute LT_VBAP of associated type ZTTYPE_VBAP .
But when i am using this in my method in component controller its not taking.Venkata123# wrote:
Hello Experts,
>
> How to pass an internal table between views? I have followed some steps but its showing an error.
>
> i have created a table type of ZTTYPE_VBAP and line type VBAP.
> I have declared in component controllers attribute LT_VBAP of associated type ZTTYPE_VBAP .
> But when i am using this in my method in component controller its not taking.
you will have to declare a node with the attributes in the context tab of component controller. by doing this you will make this node a global one in your entire application . now copy the value you have in the internal table of yours in this node.
after doing so you can read this node anywhere in the program and you can retrieve the values.
regards,
sahai.s -
Bridge Table between two fact tables
Hello everybody,
From what I have read on the BI Administration tool help and on this forum, bridge tables are used to define many-to-many relations between dimension sand fact tables. Is it possible to have a bridge table defining a many-to-many relation between two fact tables?
Here is my senario:
1. We have a fact table called fact_Orders describing orders for some products.
2. We have a fact table called fact_Sales describing sales og these products.
3. We have a table describing the transformation from order lines to sales lines which is a many-to-many relation, because it is possible to transform an order in more than two steps.
I was thinking of connecting the two fact tables with a bridge table.
If bridge tables are inappropriate for this case, what could be a better model for my senario?
Thanks for your time.Hi,
Well a conformed dimension is a bridge table between two facts, so not sure why you need anything else. If there is a one to many from D1 to F1 and a one to many from D1 to F2 then effectively there is a many to many join from F1 to F2 through the D1 dimension.
Sounds to me like all you need is an order dimension table, rows in the orders fact table will join to this dimension and so will rows in the sales fact table. You can then do calculations like number of sales per order, total sales revenue per order, # of order items per order etc etc.
Regards,
Matt -
Hi,
Adobe Flash IDE: Adobe Flash CS3 Professional and Adobe Flash Professional CS5
I am facing some migration/compatibility issues between Adobe Flash CS3 Professional and Adobe Flash Professional CS5:
I am working on a project that has been completely developed in CS3 earlier. When I am using CS5 (Flash Player 9 / Flash Player 10) to compile the FLA files, it is creating some new issues like some customized radio buttons are getting disappeared while viewing the SWF on a web page etc.
So, I would like to know:
1) Is there any migration/compatibility issue between Adobe Flash CS3 Professional and Adobe Flash Professional CS5?
2) If yes: Is there any patch available from Adobe for it?
3) If no: What could be the causes and the best possible solutions for it?
Any help and support would be highly appreciated. Many thanks in advance!
Thanks & Regards
AmitApparently some people have issues, but I don't think it is across the board. Here's a link to another recent posting that may or may not prove helpful to you...
http://forums.adobe.com/thread/776615?tstart=60 -
What is the best way to migrate partition tables from one oracle instance to another? I noticed when using CTAS statement and import/export utilitiy, Oracle migrates the table as a regular table and not as a partitioned table.
CTAS can be used to create a partitioned table, but you need to specify the partitioning in the CREATE TABLE part of the statement.
Use DBMS_METADATA.GET_DDL to extract the DDL for the table, like this:
SELECT dbms_metadata.get_ddl('TABLE',table_name) FROM user_tables;Then modify it into your CTAS statement.
For example:
create table part_table
partition by range (timestamp)
(partition aug15 values less than (to_date('16-aug-2008','DD-mon-YYYY'))
,partition aug16 values less than (to_date('17-aug-2008','DD-mon-YYYY'))
,partition aug17 values less than (to_date('18-aug-2008','DD-mon-YYYY'))
,partition aug18 values less than (to_date('19-aug-2008','DD-mon-YYYY'))
,partition aug21 values less than (to_date('22-aug-2008','DD-mon-YYYY'))
,partition aug22 values less than (to_date('23-aug-2008','DD-mon-YYYY'))
,partition other values less than (MAXVALUE)
) tablespace USERS
as select * from non_part_table@my_dblink; -
Migrating a table from SQL server 2005 to oracle 9i
Hi
I need to migrate a table from SQL server to oracle, both of which are on different machines, I tried using SQL server DTS export functionality selected the Oracle driver, created a DSN, but it gave error message box as shown below
Error Source: Microsoft OLE DB Provider for ODBC Drivers
"ORA 12560 :TNS protocol adapter error"
Context:Error During initialization of the provider
While i was successfully able to migrate the table from SQL SERVER to MS-ACCESS and from MS ACCESS to Oracle
thanks
abhishekHi
thanks warren, i just figured out that the DSN i had created while migrating data from Access to oracle was User DSN, i just created a system DSN of the similar kind and was successfully able to export the data from SQL server to oracle, the only problem being the column names in SQL server are longer than the limit of 30 characters we have in ORACLE..
Regards
Abhishek -
The tracking tables between Oracle Trade management and General Ledger
Hello,
I need some help about the Oracle Trade management(R12), I have a requirement to find the records which exist in the Claim tables but not in the GL table, I found OZF_AE_HEADERS and OZF_AE_LINES tables, but did not find the relationship between these two tables and GL import reference table. Is there any subledger table between Trade management and GL modules? Please kindly provide some information about this, thanks a lot.
Best Regards
SparkCheck whether OZF has uptaken XLA in your R12 release.
http://www.orafaq.com/node/2242
By
Vamsi -
Migration of orginals between two KPro storage systems
Hi Friends
I have created a document and checked in the originals into Storage category - SAP-SYSTEM (DMS_C1_ST-Default storage DMS (main files)).I have checked "Use KPro" configuration in "Define document type". Now, I need to migrate this originals into a fileshare system, which i have created as a new storage category(ZNEWDMS).How can I go about?
I know there is program DMS_KPRO_CONVERT available. But this program migrates documents from DMS storage(Vault, Server, Archive) to KPro storage. My requirement is to migrate the originals between two KPro storages ie From DMS_C1_ST to ZNEWDMS.
Could anybody help me on this?
Regards
S.SivakumarHi,
I noticed this thread is a bit old, but I thought I would ask anyways.
I have the following situation:
Multiple SAP Instances, each with their own KPRO. A consolidation project to move towards a single SAP Instance. The multiple KPRO's stay as is.
I am assuming the easiest wat to go about this is to ALE all the metadata of the various SAP instances to the new instance. Would the KPRO links remain intact?
As part of the consolidation, Objects like materials and equipments have changed, e.g. Material 100 has changed to Material E100. For this I would assume a Bapi to update all the DIR's with the new Objects? This I am hoping would sever the old Object Link and create the new one?
Any suggestions please.
Thanks.
Freddie. -
Hey guys! Hope you all are doing good
I am kinda confused migrating my 11.2.0.1 Oracle Restart installation to a RAC two node (aim is to add a second node along with migrating the existing one to the cluster pool).
Running on OEL 5.9 x86_64
I see that we can switch the RAC mode from 'off' to 'on' and use the existing clusterware binaries. I am trying to follow the below Oracle documentation for linux
6.2 Migrating Standalone Grid Infrastructure Servers to a Cluster
http://docs.oracle.com/cd/E11882_01/install.112/e41961/rem_orcl.htm#CWLIN347
In this document, I have completed step 5 which is de-configuring Oracle Restart. All smooth.
The problem starts here. Next step 6 says
Prepare the server for Oracle Clusterware configuration, as described in this document. In addition, choose if you want to install Oracle Grid Infrastructure for a Cluster in the same location as Oracle Restart, or in a different location:
You would have noticed that there's a note which says that the process uses config wizard which is available with rel 11.2.0.2 or later. Mine's 11.2.0.1.
From the doc
Note:
This procedure uses Oracle Clusterware Configuration Wizard, available with release 11.2.0.2 and later.
So how do I proceed from here? Can the existing binaries be used? If yes, how? Can't find much information. Thanks for your valuable time.
I hope I am not missing anything..
Warm Regards
AbhishekHello,
Then why to they say for example here the following:
The Oracle GSD (Global Service Daemon) process, ora.gsd, is typically offline. You must enable Oracle GSD manually if you plan to use an Oracle 9i Real Application Clusters database on the Oracle Clusterware 11g release 2 (11.2) cluster.
??? -
Oracle APEX 4.0 - Interactive Report - Table Column Filter Issue
Environment: Oracle APEX 4.0 - Interactive Report - Table Column header Filter Issue
We have developed an interactive report using Oracle APEX 4.0, which contains a record count of around 3,000 Rows. All the rows values are unique in nature. When we try to filter the same with the help of column header filter option available in the interactive report,We get only 1000 records.
Could some one help us, why this behaviour under APEX Table Column Header Filter as if it does not display beyond 1000 distinct values.
Is there a way or workaround on how to get all the records in the column header filter?
Thanks in advance.
KrishHi
Thanks for the advice and this issue has been moved to the below URL
Oracle APEX 4.0 - Interactive Report - Table Column Filter Issue Posted: No
Krish -
Oracle APEX 4.0 - Interactive Report - Table Column Filter Issue Posted: No
Environment: Oracle APEX 4.0 - Interactive Report - Table Column header Filter Issue
We have developed an interactive report using Oracle APEX 4.0, which contains a record count of around 3,000 Rows. All the rows values are unique in nature. When we try to filter the same with the help of column header filter option available in the interactive report,We get only 1000 records.
Could some one help us, why this behaviour under APEX Table Column Header Filter as if it does not display beyond 1000 distinct values.
Is there a way or workaround on how to get all the records in the column header filter?
Thanks in advance.
KrishKrish,
Interactive report has hard coded limit to display 1000 rows of column filter LOV for performance. Unfortunately, the limit cannot be changed. The workaround is to define a Column Filter LOV for the column instead of using "Default Based on Column Type".
Regards,
Christina -
Trigger in a join table between two database
Hi an Happy new year
I have two database, one is dedicated to security and the second for my multitenancy application
In this two databases one have tables USER, USER_JOIN_USER_ROLE and USER_ROLE
the second, USER (where fields are differents), USER_JOIN_USER_ROLE and USER_ROLE
the two join table must be the same and USER_ROLE are the same in the two databases.
I plan to use a trigger to replicate from the application database to the security one, I already use triggers to Replicate USER and set the differents fields.
I'm new in triggers using.
My user replication trigger seems like that
CREATE TRIGGER [dbo].[USER_REPLICATION]
ON [dbo].[DM_USER]
AFTER INSERT
AS
BEGIN
DECLARE @EmployeeId int = (SELECT FKEmployee FROM inserted)
DECLARE @Login nvarchar(50) = (SELECT LoginUser FROM Inserted)
DECLARE @Password nvarchar(50) = (SELECT PasswordUser FROM Inserted)
DECLARE @Tenant int = (SELECT IdCompany FROM TEST_MULTI.dbo.DM_COMPANY WHERE IsTenant = ''Y'')
DECLARE @CompanyId int = (SELECT ExtIdCompany FROM TEST_MULTI.dbo.DM_COMPANY WHERE IsTenant = ''Y'')
DECLARE @LegalEntityId int = (SELECT FKLegalEntity FROM TEST_MULTI.dbo.DM_EMPLOYEE WHERE IdEmployee = @EmployeeId)
DECLARE @LastName nvarchar(255) = (SELECT LastNameEmployee FROM TEST_MULTI.dbo.DM_EMPLOYEE WHERE IdEmployee = @EmployeeId)
DECLARE @FirstName nvarchar(255) = (SELECT FirstNameEmployee FROM TEST_MULTI.dbo.DM_EMPLOYEE WHERE IdEmployee = @EmployeeId)
DECLARE @EMail nvarchar(255) = (SELECT EMail FROM inserted)
SET NOCOUNT ON;
INSERT INTO DM_SECURITY_MASTER.dbo.DM_USER(LoginUser, PasswordUser, FKCompany, TenantId, LegalEntityId, LastName, FirstName, Email)
VALUES (@Login, @Password, @CompanyId, @Tenant, @LegalEntityId, @LastName, @FirstName, @EMail)
UPDATE [TEST_MULTI].[dbo].[DM_USER] SET ExtIdUser = (SELECT IdUser FROM [DM_SECURITY_MASTER].[dbo].[DM_USER]
WHERE LoginUser = @Login
AND PasswordUser = @Password
AND FKCompany = @CompanyId
AND TenantId = @Tenant
AND LegalEntityId = @LegalEntityId
AND LastName = @LastName
AND FirstName = @FirstName
AND EMail = @EMail)
WHERE IdUser = (SELECT IdUser FROM Inserted)
END
but I cannot figure how to use a trigger to update a collection and not find anything on it, any help welcome
I use Windows Identity Foundation in my code and update or insert can set multiple rowsHello and thanks for help.
The trigger i give as example already works fine but Fanny Liu is for sure better than mine and I will try it. Users insertions are not multiple, only one user can be inserted at the same time
My question was most on using triggers to update a collection via a Join table between my user and users roles
I wrote it Yesterday for INSERT
USE [TEST_MULTI]
GO
/****** Object: Trigger [dbo].[USER_ROLE_INSERT_REPLICATION] Script Date: 01/03/2014 10:56:36 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
-- Create date: 2014/02/01
-- Description: Replication INSERT on MASTER DATABASE
-- =============================================
ALTER TRIGGER [dbo].[USER_ROLE_INSERT_REPLICATION]
ON [TEST_MULTI].[dbo].[DM_USER_JOIN_USER_ROLE]
AFTER INSERT
AS
DECLARE InsertCursor CURSOR FOR (SELECT FKUser, FKUserRole FROM inserted)
DECLARE @UserId int, @UserRoleId int
OPEN InsertCursor
FETCH NEXT FROM InsertCursor INTO @UserId, @UserRoleId
WHILE @@FETCH_STATUS = 0
BEGIN
DECLARE @UserMasterId int = (SELECT ExtIdUser FROM TEST_MULTI.dbo.DM_USER WHERE IdUser = @UserId)
IF NOT EXISTS(SELECT * FROM DM_SECURITY_MASTER.dbo.DM_USER_JOIN_USER_ROLE WHERE FKUser = @UserMasterId
AND FKUserRole = @UserRoleId)
INSERT INTO DM_SECURITY_MASTER.dbo.DM_USER_JOIN_USER_ROLE (FKUser, FKUserRole) VALUES (@UserMasterId, @UserRoleId)
FETCH NEXT FROM InsertCursor INTO @UserId, @UserRoleId
END
CLOSE InsertCursor;
DEALLOCATE InsertCursor;
And for DELETE
USE [TEST_MULTI]
GO
/****** Object: Trigger [dbo].[USER_ROLE_DELETE_REPLICATION] Script Date: 01/03/2014 10:57:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
-- Create date: 2014/02/01
-- Description: Replicate DELETE on MASTER DATABASE
-- =============================================
ALTER TRIGGER [dbo].[USER_ROLE_DELETE_REPLICATION]
ON [TEST_MULTI].[dbo].[DM_USER_JOIN_USER_ROLE]
AFTER DELETE
AS
DECLARE DeleteCursor CURSOR FOR (SELECT FKUser, FKUserRole FROM deleted)
DECLARE @UserId int, @UserRoleId int
OPEN DeleteCursor
FETCH NEXT FROM DeleteCursor INTO @UserId, @UserRoleId
WHILE @@FETCH_STATUS = 0
BEGIN
DECLARE @UserMasterId int = (SELECT ExtIdUser FROM TEST_MULTI.dbo.DM_USER WHERE IdUser = @UserId)
DELETE FROM DM_SECURITY_MASTER.dbo.DM_USER_JOIN_USER_ROLE WHERE FKUser = @UserMasterId AND FKUserRole = @UserRoleId
FETCH NEXT FROM DeleteCursor INTO @UserId, @UserRoleId
END
CLOSE DeleteCursor;
DEALLOCATE DeleteCursor;
It works fine
Thanks for help, I will mark it as answered -
Comparing Table between two dbs DBMS_RECTIFIER_DIFF.DIFFERENCES
We have streams replication between two databases db1 & db2 (table level streams replication).
We would like to compare tables between these databases.
we can use DBMS_RECTIFIER_DIFF.DIFFERENCES to find out differences. However what is value to be passed for REFERENCE_SITE & COMPARISON_SITE parameters?
Is it DBLINK or TNSNAMES entry ?Its the DBLINK.
Maybe you are looking for
-
Error while generating form 16 in portal - Screen output without connection
Dear Gurus, We are facing error while generating form 16 through portal and getting the below error in portal. Screen output without connection to user. error key: RFC_ERROR_SYSTEM_FAILURE When we checked for dumps in R/3 the following dump is com
-
IPhone 5 proximity sensor not working! (iOS 6.0.1)
iPhone 5 proximity sensor not working! (iOS 6.0.1) When I call , the screen is not locked(
-
Hiding the layout during printing
Hi Experts, Is there any way to hide the layout during printing? I have developed a PDF form with complex layout. I want our Customers view the form in print preview and see that all the values are correctly aligned within the boxes before printing.
-
Is there an upgrade for dictionary 10.1?
is there an upgrade for dictionary 10.1. i'm using snow leopard now and the dictionary will not allow me to check spelling
-
Connected to auxiliary database (not started)
Hello! I'm establishing Data Guard on Oracle 11g (x64). OS - CentOS 6.6 x86_x64. The problem occurs when i'm trying to connect from my primary db to standby. I expect: connected to auxiliary database (not mounted) but getting not started And when i'm