Change of database schemas

hi,
please explain how to change the database schemas in the weblogic. where u have to go and change the db name as well schema.
please give me the answer. I am very thankful to your answer.
Thanks,
mohan

This is exactly what I'm looking for...I just can't make it work. I have 2 tables (database and schema). They are related via a database_id column. My code is below if you are willing to help.
HTML Header
<script>
function get_select_list_xml1(pThis,pSelect){
var l_Return = null;
var l_Select = html_GetElement(pSelect);
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
'APPLICATION_PROCESS=CASCADING_SCHEMA',0);
get.add('P7_DATABASE',pThis.value);
gReturn = get.get('XML');
if(gReturn && l_Select){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue)
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</script>
Application Process
BEGIN
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn ('<select>');
HTP.prn ('<option value="' || 0 || '">' || '- All Schemas -'
|| '</option>'
FOR c IN (SELECT schema, schema_id
FROM (SELECT schema, schema_id, database_id
FROM schema_lookup
WHERE database_id = :cascading_selectlist_item_1)
LOOP
HTP.prn ('<option value="' || c.schema_id || '">' || c.schema || '</option>');
END LOOP;
HTP.prn ('</select>');
END;
P7_DATABASE_ID Form Element Attribute
onchange="get_select_list_xml1(this,'P7_SCHEMA_ID');
P7_SCHEMA_ID LOV
select SCHEMA d, SCHEMA_ID v from SCHEMA_LOOKUP
where DATABASE_ID = :P7_DATABASE_ID
order by 1

Similar Messages

  • How can I change the database & schema used by an Application?

    Hi community,
    I am very new on Essbase and I need help to find out how can I change the database connection (and schema) used by the database of an Application. The figure is that I need to point this database to a QA environment (currently it points to DEV).
    If I do a right click over the properties of the database, I can see the following tabs: [ General ][ Dimensions ][ Statistics ][ Modifications ][ Compression ]. However, there is no option to change the database connection.
    Is there a way to do this?
    Thanks in advance for any help! Cheers!

    Are you trying to change a database connection of Planning application?
    Essbase application do not have a relational connection.
    Regards
    Celvin
    http://www.orahyplabs.com

  • Database schema synchronization

    Hello, i am going to maintain any machines with maxdb and synchronization in production, but i am still changing applicacion schema because i am still in development so i will need to be able to change the database schema to the machines in production to newer versions of the database, i am maintaining a catalog in my applicacion subversion repository so i can do diffs between versions, but i have two questions:
    1.- I have to stop synchronization when i am going to do schema changes, no? if i have to do it when i reactivate replication units if table columns have changed, do i have to reconfigure this replications units?
    2.- any utility to do a visual/easy database comparator and synchronizator of schema? i have found many utilities to do it with SQL Server or Oracle but only one that can work with any odbc database (i have not tested it yet but i am doing to do anytime soon, http://www.dbbalance.com)

    Hallo,
    if you rename your source or target schemas you have to stop synchronization and reconfigure the replications units.
    Best Regards
    Wolfgang

  • What is the best methodology to handle database schema changes after an application has been deployed?

    Hi,
    VS2013, SQL Server 2012 Express LocalDB, EF 6.0, VB, desktop application with an end user database
    What is a reliable method to follow when there is a schema change for an end user database used by a deployed application?  In other words, each end user has their own private data, but the database needs to be expanded for additional features, etc. 
    I list here the steps it seems I must consider.  If I've missed any, please also inform:
    (1) From the first time the application is installed, it should have already moved all downloaded database files to a separate known location, most likely some sub-folder in <user>\App Data.
    (2) When there's a schema change, the new database file(s) must also be moved into the location in item (1) above.
    (3) The application must check to see if the new database file(s) have been loaded, and if not, transfer the data from the old database file(s) to the new database file(s).
    (4) Then the application can operate using the new schema.
    This may seem basic, but for those of us who haven't done it, it seems pretty complicated.  Item (3) seems to be the operative issue for database schema changes.  Existing user data needs to be preserved, but using the new schema.  I'd like
    to understand the various ways it can be done, if there are specific tools created to handle this process, and which method is considered best practice.
    (1) Should we handle the transfer in a 'one-time use' application method, i.e. do it in application code.
    (2) Should we handle the transfer using some type of 'one-time use' SQL query.  If this is the best way, can you provide some guidance if there are different alternatives for how to perform this in SQL, and where to learn/see examples?
    (3) Some other method?
    Thanks.
    Best Regards,
    Alan

    Hi Uri,
    Thank you kindly for your response.  Also thanks to Kalman Toth for showing the right forum for such questions.
    To clarify the scenario, I did not mean to imply the end user 'owns' the schema.  I was trying to communicate that in my scenario, an end user will have loaded their own private data into the database file originally delivered with the application. 
    If the schema needs to be updated for new application features, the end user's data will of course need to be preserved during the application upgrade if that upgrade includes a database schema change.
    Although I listed step 3 as transferring the data, I should have made more clear I was trying to express my limited understanding of how this process "might work", since at the present time I am not an expert with this.  I suspected my thinking
    is limited and someone would correct me.
    This is basically the reason for my post; I am hoping an expert can point me to what I need to learn about to handle database schema changes when application upgrades are deployed.  For example, if an SQL script needs to be created and deployed
    then I need to learn how to do that.  What's the best practice, or most reliable/efficient way to make sure the end user's database is changed to the new schema after the upgraded application is deployed?  Correct me if I'm wrong on this,
    but updating the end user database will have to be handled totally within the deployment tool or the upgraded application when it first starts up.
    If it makes a difference, I'll be deploying application upgrades initially using Click Once from Visual Studio, and eventually I may also use Windows Installer or Wix.
    Again, thanks for your help.
    Best Regards,
    Alan

  • How to change database schema of data source in OWB?

    Hi,
    Could someone give me hint about my questions:
    I select many database schema in TOAD. like "My Shema" and "All Schema".
    If I create a Oracle Data Source in OWB 10.2. All tables/viewsI can see only from "My Schema" (I think it is default), However, I need to connect "All Scema". There are lots of prod tables/views. I don't know how to set/change/config in OWB even reading guide.
    Thanks a lot
    Lan

    Lan,
    You can ONE of the following:
    1. Dbl click the src/target module and go to metadata location tab and select a location that has the details pointing to the different schema (If you do not have this location created, you may have to create one).
    2. Create synonyms in "My Schema" to objects from other schema. Then try to import the tables again. This time you will be able to see the other tables (the icon will be different for synonyms.)
    Hope That Helps.
    Kaushik.

  • Is it possible to change the default "oraesb" database schema ?

    Wondering if it is possible to configure ESB to use a database schema other than the default one (i.e oraesb). Motivation: I have one database that I'd like to leverage for multiple mid-tier installations.
    From the IRCA script, I get the impression that this should be possible. If so, are any of these steps documented anywhere. Thanks.

    In theory yes, although I have never tried, nor probably recommend.
    Thinking about it, what you would need to do is install the SOA suite as you would normally using the default schema. Once installed and working copy the ORAESB schema into another schema of your choice.
    In the enterprise manaher you would need to change all the connection details to pount to the new schema. In the jdbc resources. Make sure that the names in the datasorce remain the same.
    I think it would be too dificult to do at install time.
    cheers
    James

  • Help me to fix the error while running DBMaintain Against the Database Schema in ASE.

    Hi All,
    I am trying to install sybase mobiliser platform 5.1 SP 03.I am  referring the following guide
    http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01871.0513/pdf/Mobiliser_Platform_Installation_Guide_5.1…
    Now I have configured the ASE database server with default settings and now it is running fine.
    Now my concerns are as follows:
    1) I have executed the database schema (mobr5): 001_MONEY_drop_and_create_user.DDL with the help of linux command
    isql -Usa -SASE1 -Phello@123 -i/opt/sybase/db/sql/001_MONEY_drop_and_create_user.DDL -o/opt/sybase/ASE-15_0/install/ASE1.log
    How do I check the created database schema and user with default name 'mobr5'?
    2) While running DBMaintain Against the Database Schema, I have followed the steps mentioned in the guide and made the following changes in the file dbmaintain.properties.ase
    database.driverClassName=com.sybase.jdbc4.jdbc.SybDriver
    database.url=jdbc:sybase:Tds:ASE1:5000/mobr5
    database.userName=mobr5
    database.schemaNames=mobr5
    database.password=paybox
    #Must be set if the driver is not packaged inside the scriptarchive or is present on the classpath
    #e.g. /path/to/driver.jar
    #database.driverLocation=/path/to/jconnect.jar
    database.driverLocation=/opt/sybase/db/sql/com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase.jar
    database.driverLocation=/opt/sybase/db/sql/com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase-vanilla.jar
    When I execute the script archives ,
    java –jar /opt/sybase/db/sql/com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase-driverless.jar -c /opt/sybase/db/sql/dbmaintain.properties.ase
    java –jar com.sybase365.mobiliser.vanilla.standalone-5.1.3.RELEASE-scriptarchive-ase-vanilla-driverless.jar -c dbmaintain.properties.ase
    I get the following error:
    So please help me to resolve the issues.

    Hi All,
    Issue is resolved and database has been updated successfully..
    Error was in database .url field of dbmaintain.properties.ase file.
    I have changed the database.url field  from database.url=jdbc:sybase:Tds:ASE1:5000/mobr5
    to  database.url=jdbc:sybase:Tds:<Private IP of Linux instance>:5000/mobr5
    Note:- I am installing mobiliser platform on AWS cloud.So I have made use of Private IP address of AWS Linux instance.

  • TF244069: An error occurred while checking the provisioning status of the reporting database schema for a PWA instance.

    The command TfsAdmin ProjectServer /RegisterPWA causes next error:
    TF244069: An error occurred while checking the provisioning status of the reporting database schema for a PWA instance.
    Project Server returned the following error: "Server was unable to process request. ---> The request failed with HTTP status 401: Unauthorized.".
     (type ProvisionException)
    Exception Stack Trace:    at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionPwaDBSchema.HandleSoapException(SoapException soapException, String errorResourceString)
       at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionPwaDBSchema.IsDBSchemaProvisioned()
       at Microsoft.TeamFoundation.Sync.Provisioning.ProvisionManager.Provision()
    I installed SharePoint 2013 and Project Server 2013 as farm and TFS 2012 and my account has permissions everywhere. I read article
    http://msdn.microsoft.com/en-us/library/gg412653.aspx and gave full permissions for TFS account to SQL and Project, Project app pool account to SQL, but still have an error.
    How can I find out what exactly permissions are not enough???

    The problem was in claims authentication. Changed to Windows and all worked out.

  • Creation of a Database Schema is not working (Into a Sync Group)

    Hello,
    We have in: Sql Databases > Sync > Sync Group, a group called "SyncGroupViviendasProyectosVentasPruebas"
    If we go to "Sync Rules" and click "DEFINE SYNC RULES", no matter the databse we choose (there are 2), when we click in "REFRESH
    THE DATABASE SCHEMA" it dont works!
    It seems to be working but minutes later there is no Schema created.
    Why? Why the Create Database Schema is not working?
    Thanks,

    The detail error log from our service backend is:
    'Type=Microsoft.SqlServer.Management.Sdk.Sfc.InvalidVersionEnumeratorException,Message=Operation not supported on version 11.0 SqlAzureDatabase.,Source=Microsoft.SqlServer.SqlEnum,StackTrace=   at Microsoft.SqlServer.Management.Smo.XmlReadDoc.LoadFile(Assembly
    a&#44; String strFile)
       at Microsoft.SqlServer.Management.Smo.SqlObject.LoadInitDataFromAssemblyInternal(Assembly assemblyObject&#44; String file&#44; ServerVersion ver&#44; String alias&#44; StringCollection requestedFields&#44; Boolean store&#44;
    StringCollection roAfterCreation&#44; DatabaseEngineType databaseEngineType)
       at Microsoft.SqlServer.Management.Smo.SqlObject.LoadInitData(String file&#44; ServerVersion ver&#44; DatabaseEngineType databaseEngineType)
       at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.LoadElement(ObjectLoadInfo oli&#44; ServerVersion ver&#44; DatabaseEngineType databaseEngineType)
       at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.GetElement(ObjectLoadInfo oli&#44; ServerVersion ver&#44; DatabaseEngineType databaseEngineType)
       at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.GetAllElements(Urn urn&#44; ServerVersion ver&#44; DatabaseEngineType databaseEngineType&#44; Object ci)
       at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetObjectsFromCache(Urn urn&#44; Object ci)
       at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.GetData(Object connectionInfo&#44; Request request)
       at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object connectionInfo&#44; Request request),'
    It might be a collation/SMO issue after I do some research, so may I know that have you change the collation of you SQL Azure database? If yes, please try to use default collation and try again.
    Regards,
    Bowen

  • Enterprise SecMgr: Can't add Database Schema Mapping to OracleDefaultDomain

    Hello,
    I'm trying to configure Enterprise Users (using a shared schema) and within EntSecMgr, I select...
    Realms / MyID realm / Enterprise Domains / OracleDefaultDomain / Enterprise Roles / OracleDefaultDomain / Database Schema Mapping
    and from there, I try to add the Directory Entry and schema. I don't get any errors when I click "OK", but the Database Schema mapping does not "take".
    I notice the little icon next to OracleDefaultDomain (in ESM) has a "lock", so perhaps it's read-only? How can I change that, or where should I be assigning the Database Schema mapping, if not in the OracleDefaultDomain?

    I never did figure out why I can't add the Database Schema Mapping to the OracleDefaultDomain, but I used ESM to add the schema mapping directly to the database itself, and now my Enterprise Users can login.

  • Problem adding database schema , eroor : not connected

    Thank you for reading my post
    I download the demo sample from oracle soa web site . and i am trying to follow the tutorial to
    create the database schema, to make this step complete
    I create oracle_home and oracle_SID variables (Windows OS )
    then
    I open an sqlplus session (sys/pass as sysdba) and to make sure that i am
    connected i execute
    select * from V$database ;
    it works
    then i execute :
    select * from hr.jobx
    it works file.
    it mean that i am connected to database.
    but when i execute @build.sql i get the following errors , can some one help me ?
    i should say that after i execute the @build.sql i can not execute any command because it says that SP2-0640:Not connected
    SQL> @build.sql
    old   1: DROP USER &&1 CASCADE
    new   1: DROP USER SOADEMO CASCADE
    DROP USER SOADEMO CASCADE
    ERROR at line 1:
    ORA-01918: user 'SOADEMO' does not exist
    SP2-0734: unknown command beginning "DEFAULT TA..." - rest of line ignored.
    SP2-0734: unknown command beginning "TEMPORARY ..." - rest of line ignored.
    SP2-0734: unknown command beginning "QUOTA UNLI..." - rest of line ignored.
    SP2-0734: unknown command beginning ", create t..." - rest of line ignored.
    SP2-0734: unknown command beginning ", create p..." - rest of line ignored.
    SP2-0734: unknown command beginning ", create s..." - rest of line ignored.
    SP2-0734: unknown command beginning ", create t..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning ", create v..." - rest of line ignored.
    SP2-0734: unknown command beginning ", create s..." - rest of line ignored.
    SP2-0734: unknown command beginning ", alter se..." - rest of line ignored.
    SP2-0734: unknown command beginning ", create t..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning ", create m..." - rest of line ignored.
    SP2-0734: unknown command beginning ", query re..." - rest of line ignored.
    SP2-0734: unknown command beginning ", create d..." - rest of line ignored.
    SP2-0734: unknown command beginning ", create a..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning ", alter us..." - rest of line ignored.
    SP2-0734: unknown command beginning ", resumabl..." - rest of line ignored.
    SP2-0734: unknown command beginning ", ALTER AN..." - rest of line ignored.
    SP2-0734: unknown command beginning ", DROP ANY..." - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning ", LOCK ANY..." - rest of line ignored.
    SP2-0734: unknown command beginning ", CREATE A..." - rest of line ignored.
    SP2-0734: unknown command beginning ", SELECT A..." - rest of line ignored.
    SP2-0042: unknown command "TO &&1" - rest of line ignored.
    SP2-0044: For a list of known commands enter HELP
    and to leave enter EXIT.
    SP2-0734: unknown command beginning ", execute_..." - rest of line ignored.
    SP2-0042: unknown command "TO &&1" - rest of line ignored.
    ERROR:
    ORA-01017: invalid username/password; logon denied
    Warning: You are no longer connected to ORACLE.
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    drop table 'ITEMS'
    SP2-0640: Not connected
    drop table 'ADDRESS'
    SP2-0640: Not connected
    drop table 'CUSTOMER'
    SP2-0640: Not connected
    drop table 'ORDERS'
    SP2-0640: Not connected
    drop table 'PRODUCT'
    SP2-0640: Not connected
    drop table 'CUSTOMER_ADDRESS'
    SP2-0640: Not connected
    drop sequence 'EJB_SEQ_ID_GEN'
    SP2-0640: Not connected
    drop sequence 'ADDRESS_EJB_SEQ_ID_GEN'
    SP2-0640: Not connected
    drop sequence 'ORDER_SEQ_ID_GEN'
    SP2-0640: Not connected
    drop table 'SSN'
    SP2-0640: Not connected
    SP2-0640: Not connected
    create table 'ITEMS'
    SP2-0640: Not connected
    create table 'ADDRESS'
    SP2-0640: Not connected
    create table 'CUSTOMER'
    SP2-0640: Not connected
    create table 'CUSTOMER_ADDRESS'
    SP2-0640: Not connected
    create table 'ORDERS'
    SP2-0640: Not connected
    create table 'PRODUCT'
    SP2-0640: Not connected
    create primary key constraint on 'ITEMS'
    SP2-0640: Not connected
    create primary key constraint on 'ADDRESS'
    SP2-0640: Not connected
    create primary key constraint on 'CUSTOMER'
    SP2-0640: Not connected
    create primary key constraint on 'ORDERS'
    SP2-0640: Not connected
    create primary key constraint on 'PRODUCT'
    SP2-0640: Not connected
    create foreign key constraint on 'ITEMS'
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    create foreign key constraint on 'ORDERS'
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    SP2-0640: Not connected
    What OBJECTS were created?
    SP2-0734: unknown command beginning ",object_na..." - rest of line ignored.
    SP2-0734: unknown command beginning "from       user..." - rest of line ignored.
    SP2-0734: unknown command beginning "order by 1..." - rest of line ignored.
    Are there any INVALID OBJECTS?
    SP2-0734: unknown command beginning ",object_na..." - rest of line ignored.
    SP2-0734: unknown command beginning "from       user..." - rest of line ignored.
    SP2-0734: unknown command beginning "where      sta..." - rest of line ignored.

    Hi
    I almost resolved the issue but i do not know whether it is a correct path that i used or not.
    i have made some changes in build.sql as follow :
    -i changed the schema name to HR , and its pass to HR_PASS
    -i comment schema creation command
    now it successfully executed.
    but i can not understand what was the problem.
    Thanks

  • Issues changing the database info at runtime

    Hi,
    My Environment:
    Crystal Reports 2008 SP2
    ASP.NET (VS 2005 Framework 2.0)
    Database: Oracle 10g
    I developed the report connecting to development server and schema: ERA_USR. We have 2 reports that are desinged using store procedures and these stored procedure are put in a package both in system test and development database server.
    When we moved to system testing, the reports that are using tables and views works fine. but the reports desinged using SPs are throwing below error: The schema is: ERA
    "Failed to retrieve data from the database. Details: [Database Vendor Code: 6550 ] Failed to retrieve data from the database. Details: [Database Vendor Code: 6550 ] Failed to retrieve data from the database. Error in File ERRA Forecast Comparison - Position Report {3EAD55CB-4866-40D1-A9D7-DC0D5AFC924A}.rpt: Failed to retrieve data from the database. Details: [Database Vendor Code: 6550 ] "
    But I change the report pointing to system test database, the reports that are desinged using SPs are working fine.
    Please let me know what might be the problem
    Thanks
    Rama

    If we change to new schema using designer, then the reports are working fine.
    What I did is, I dropped the oracle package and compiled the SPs inidvidually. Now the report are working fine even if the SPs are in different schema and with out changing the report to the new schema in the desinger.
    This solved my problem.
    Thanks
    Rama
    Edited by: RAMAKRISHNA VUPPALURU on Jan 27, 2010 12:06 AM

  • COMPARE DATABASE SCHEMA WITHOUT USING TOAD

    Hi all,
    I have always used toad to compare database schema ....
    Does anyone know about any other way to go about comaparing schema?
    e.g script etc.....

    There are many different ways of doing this, depending on how detailed you want to get and what is relevant to you.
    The first place to start is the "Oracle Reference" manual which describes the various DBA_ views. You can build up your won comparison routine fairly easily simply by running differences. Using SQLPlus, you could go down the road of
    Prompt Objects missing in &2 that are in &1
    SELECT object_type, object_name
    FROM DBA_OBJECTS
    WHERE OWNER=&1
    MINUS
    SELECT object_type, object_name
    FROM DBA_OBJECTS
    WHERE OWNER=&2
    Prompt Objects missing in &1 that are in &2
    SELECT object_type, object_name
    FROM DBA_OBJECTS
    WHERE OWNER=&1
    MINUS
    SELECT object_type, object_name
    FROM DBA_OBJECTS
    WHERE OWNER=&2
    etc.
    This has the advantage of allowing you complete control over what you see (as compared to giving that control to some other developer, such as the Toad Team). There are some disadvantages, including:
    you need to understand what you want and why;
    you need to be familiar with the documentation and the structure of the DBA_ views;
    you need to maintain the scripts
    You could always purchase Oracle's Change Management Pack add-on to Enterprise Manager or use tools like SQLDeveloper as well.

  • Help! Need to generate SQL script file in every build of every changes in database project on TFS

    Hi everyone,
                I want to accomplish a task in TFS that I need to auto generate the database changes as SQL script file in drop folder for every build.
    For ex.: If I add a table in a database and then check in the changes, I need to get that create table script in the drop folder as .sql file extension
    I want to automate the build too for every check in. Help me out and guide me a step by step procedure because since I am new to TFS build in visual studio.
    Thanks

    Check out SSDT:
    https://msdn.microsoft.com/en-us/data/tools.aspx
    It can generate a DACPAC which can be used to update a SQL Database through the commandline. To ensure that the .sql file executed is compatible with the target database schema it contains a compiled version of teh schema and will generate the change script
    on-the-fly.
    If you want, you call SqlPackage,exe to generate a SQL script if you want to inspect it before executing.
    https://msdn.microsoft.com/en-us/library/hh550080%28v=vs.103%29.aspx
    My blog: blog.jessehouwing.nl

  • Problem changing the database in runtime

    We use Crystalreports 10 and CrystalReports 11 using the TCRPE Delphi-VCL-Components (Delphi 2007)
    I have the following problem:
    We provide several database-servers: oracle, Mssql and Postgres. We connect to the database via odbc.
    We prepared some standard-reports for our customers.
    Saving them with CR10 or higher the database schema, database name and in some cases the username is stored in the reports.
    To use the report on an other system it must be saved with the new connecteion. Is there any way to change the connection with the TCRPE-Components?
    Best regards
    Christian Fried

    The following is probably the best thread to look at:
    How can I change connection information using CrystalReport VCL for Delphi?
    Ludek

Maybe you are looking for