How to recreate database for UCM

I was able to change the DB connection from one to another by change the settings through "System properties". however, there were some database objects(tables) created during the UCM installation. is there anyway I can switch to new database and get UCM database objects recreated without re-installing the UCM? there seems some sql scripts in the database directory, but I'm not sure how to run them, the order and parameter are not clear to me.
Thanks

Hi
One thing that you can do to recreate the default tables and columns is to run the all.sql script on the DB which is specific for your db .If you want to just recreate an image replica then extract the ddl statements from your current db and put it in a sql script and execute that directly on the other db instance . In this case make sure to change the instance specifc details in the ddl script extracted and replace them with the newer instance details like the table space name , user name executing it and like wise.
Another way would be to use Archiver to create export batch file for the Tables and then importing them to the target instance. The way out for this is to go to Archiver Applet - Create New Archive - Export - Tables and here and include all the tables that are there in the content server.
Hope this helps
Thanks
Srinath

Similar Messages

  • How to recreate capture for oracle 10gR2 in window

    Hi Experts,
    After I got the archived issues, I restarted capture process in vmsdbhq by strmadmin account and then I saw the messages as: WAITING FOR REDO: LAST SCN MINED 6134217037123.
    SQL> DECLARE
    2 -- Declare variable to hold instantiation SCN
    3 iscn NUMBER;
    4 BEGIN
    5 iscn:=DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER();
    6 DBMS_OUTPUT.PUT_LINE ('Instantiation SCN is: ' || iscn);
    7 END;
    8 /
    Instantiation SCN is: 6134217223400
    SQL> begin
    2 DBMS_cAPTURE_ADM.ALTER_CAPTURE(
    3 capture_name => 'STREAM_CAPTURE',
    4 start_scn => 6134217223400,
    5 first_scn => 6134217223400);
    6 end;
    7 /
    begin
    ERROR at line 1:
    ORA-26666: cannot alter STREAMS process STREAM_CAPTURE
    ORA-06512: at "SYS.DBMS_CAPTURE_ADM_INTERNAL", line 166
    ORA-06512: at "SYS.DBMS_CAPTURE_ADM", line 212
    ORA-06512: at line 2
    PL/SQL procedure successfully completed.
    I got advice to recreate this capture.
    How to recreate a capture? May I have a procedure in detail? which difference between recreate capture and create capture?
    Or i need to stop propagation during using alter exist capture?
    If drop capture, do I need to all capture steps?
    I am new person in here
    Thanks for your help!
    JIm

    +" which difference between recreate capture and create capture?"+
    No major difference.
    Create capture - You are creating capture process for the first time.
    Recreate capture - You are dropping capture process and creating it again..
    To recreate capture process, first you have to stop associated propagation and apply process.
    than stop and drop the exising capture process. You can follow the same procedure as you followed for creating the capture process initially..
    See following example, followed by me for the same:
    1) stop capture process
    BEGIN
    DBMS_CAPTURE_ADM.STOP_CAPTURE(
    capture_name => 'APPS_CAPTURE');
    END;
    2) Stop propagation process.
    Execute following command as stream administrator from primary database.
    BEGIN
    DBMS_PROPAGATION_ADM.STOP_PROPAGATION(
    propagation_name => 'APPS_PROP');
    END;
    3) Stop apply process.
    Execute following command as stream administrator from replica database.
    BEGIN
    DBMS_APPLY_ADM.STOP_APPLY(
    apply_name => 'APPS_APPLY');
    END;
    4) drop capture process
    BEGIN
    DBMS_CAPTURE_ADM.DROP_CAPTURE(
    capture_name => 'APPS_CAPTURE',
    drop_unused_rule_sets => true);
    END;
    5) check table status. (as sys user)
    select count(*) from dba_objects where object_name like 'APPS_CAP_TABLE';
    6) ----check rules (our rule is:
    SELECT rule_owner, rule_name FROM dba_rules
    7) ----create capture process
    begin
    DBMS_CAPTURE_ADM.CREATE_CAPTURE(
    queue_name => 'APPS_CAP_QUEUE',
    capture_name => 'APPS_CAPTURE',
    rule_set_name => NULL,
    start_scn => NULL,
    source_database => 'AQPROD',
    use_database_link => FALSE,
    first_scn => NULL,
    logfile_assignment => 'implicit',
    negative_rule_set_name => NULL,
    capture_user => NULL,
    checkpoint_retention_time => 6);
    end;
    8) --------START CAPTURE PROCESS
    BEGIN
    DBMS_CAPTURE_ADM.START_CAPTURE(
    capture_name => 'APPS_CAPTURE');
    END;
    9) --------START PROPAGATION PROCESS
    BEGIN
    DBMS_PROPAGATION_ADM.START_PROPAGATION(
    capture_name => 'APPS_PROP');
    END;
    10) Start apply process.
    Execute following command as stream administrator from replica database.
    BEGIN
    DBMS_APPLY_ADM.START_APPLY(
    apply_name => 'APPS_APPLY');
    END;
    HTH.
    Regards,
    Dipali..

  • How to imp database for a recover

    Hi Experts,
    We have a database as oracle10G R4 in 32 bit window.
    I makk a full database exp as a backup.
    At the present, i find some data file is missing in user dev tablespace.
    My question, we do not have a schema or tablespace exp dump file.
    For exiting DB, Do we need to drop all tablesapce (include sys tbs) and recreate tablespaces for imp full database recover?
    Thanks for help!
    JIM

    Hi,
    If you have a full database export, you can perform a full, table, schema, or tablespace import from this. If you want to just recover a tablespace, then you would want
    1. drop that tablespace from the database
    2. create the tablespace as you want it
    3. run import with a tablespace filter:
    impdp user/password directory=your_dir dumpfile=your_dumpfiles tablespace=your_tablespace ...
    Dean

  • How to shrink database for the Oracle

    Hi,
    As you know, in the Sql server database there is a "shrink database" for the shrink the database space, but how to do that for the Oracle9i?
    Any comments would be appreciated.
    Thanks a lot

    You will have to resize ur datafiles to shrink ur db. Here are the steps
    1) select file_name,file_id,bytes from dba_data_files;
    This will give u the current size of datafiles.
    2) select file_id,sum(bytes) from dba_free_space group by file_id;
    This will give u the free space in the datafiles. If the file_id is not listed in this query that means the file is fully occupied/used.
    (used space = bytes col from query 1 - sum(bytes) col from query 2)
    3) alter database datafile file_id resize ### ;
    Enter the value you wanna resize based upon ur req. You cannot shrink the datafiles below the used space.
    Regards,
    http://askyogesh.com

  • How to add old tablespaces to newly recreated database

    My database was in no archived log mode and system tablespace was corrupted and was requiring recovery for overwritten online redo file.
    So I had recreated database.
    Now how to include other old tablespace to newly recreated database.
    Thanks & regards,

    yea, Nicolas is right...
    but if you have some back up or export file, then you can restore it back...
    for restoring back from dmp file, first run the import with show=y, create tablespaces from the logfile and then run the import with full=y ignore=y
    Sidhu
    http://amardeepsidhu.blogspot.com

  • Library recovery: how can I recover a library after I get this message: There was an error opening the database for the library "/Users/Jim/Pictures/Libraries/K2 Library.aplibrary"???

    Library recovery: how can I recover a library after I get this message: "There was an error opening the database for the library “/Users/Jim/Pictures/Libraries/K2 Library.aplibrary”???

    Thanks a lot, Frank. The lsregister did the trick! I am testing this on 10.8.2.
    http://support.apple.com/kb/TA24770 : I deleted the "com.apple.LaunchServices.plist", and restarted the Finder, even logged off and on again; did not change anything. The file has not been recreated, so it may not be used anymore.
    http://itpixie.com/2011/05/fix-duplicate-old-items-open-with-list/#.ULZqa6XAoqY
    The direct "copy and paste" from the post did not work: I had to retype it :
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
    but then it worked like a charm!
    Cheers
    Léonie
    And btw: I turned on the "-v" option for the lsregister to see, what was going on, and saw plenty of error messages (error -10811); so I repeated the command with "sudo". After that I still saw five iPhotos. Repeating as regular user finally got rid of the redundant iPhoto entries. It looks like registering as super user may be causing this trouble.

  • How to recreate .microsoft directory for TEE CLC in linux?

    Hi,
    I have accidentaly deleted ~/.microsoft directory in linux after installing TEE-CLC-12.0.2. I cannot get any logs now. How do I reinstall TEE-CLC-12.0.2 and recreate ~/.microsoft so that log files get created inside it.
    Thanks,
    Cirius

    As I see you want to use a cold backup for upgrade procedure.
    I suggest to copy all cold backup files including control, data (temp, sys, all tbs) files, log files, recreate admin directories in the very same location as there existed in the original db server.
    You would also need spfile, pwd file and all others **DBSID** from $OH/dbs dir.
    Once you "restored" your cold backup you can do a manual upgrade.
    Connect sqlplus"/ as sysdba" and "startup upgrade" to test if you get all files in place.
    You would need to prepare this database for upgrade (remove obsolete parameters etc)
    Please check MOS manual upgrade steps docs for more information about upgade.
    e.g.:
    Complete Checklist for Manual Upgrades to 11gR2 [ID 837570.1]
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=BULLETIN&id=837570.1
    Oracle 11gR2 Upgrade Companion [ID 785351.1]
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=REFERENCE&id=785351.1
    BTW I'm not sure if RHES 6 is already certified...
    Edited by: Kecskemethy on Oct 27, 2010 4:35 AM
    added upgrade docs links

  • How to add multiple databases for a single frontend

    We have a project based on distributed databases and we have to workout on .Net framework.I want to know some information of connecting multiple databases for a single frontend and how can we access them.
    If so we have connected 2 databases for a single frontend in future if I want add one more database to it how it will be possible to do it without disturbing the current connectivity.
    Please help me in resolving this problem.
    Thanks......

    hi,
    what do you mean by connecting 2 databases? can you explain further?
    using entityframework you can connect to different databases
    public class CustomerContext : DbContext
    public ReportContext()
    : base("DefaultConnection")
    public DbSet<Customers> Customers { get; set; }
    and your connectionstring (config file)
    <connectionStrings>
    <add name="DefaultConnection" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=D:\\Database\Project.mdf;Integrated Security=True" providerName="System.Data.SqlClient" />
    </connectionStrings>
    you can add more connection strings on it.
    https://msdn.microsoft.com/en-us/library/vstudio/cc716756(v=vs.100).aspx
    https://msdn.microsoft.com/en-us/library/ms254978(v=vs.110).aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • How do I search for all "missing" tracks within the iTunes database?

    I found the dreaded ! of death, and sadly I verified the tacks indeed are not on my hard drive.
    Is there a way to sort on this tag so that I can see what else might be missing on my hard drive but remains in the database (sort of similar to how you can search for all tracks that have missing artwork)? 

    Thanks.  It works perfectly.
    URL for anyone else in need:  http://dougscripts.com/123

  • How can i use a database for practice in DOS

    i have some problems in the sqlplus.
    My OS is windows2000 server,when i intalled the Oracle 8i
    i type a command 'cmd' go to DOS.and type "sqlplus username/password@database"
    but always the system say that my database name can't be deal with.
    and i want to get a sample database for training SQL statements.How can i get it.
    is Oracle 8i have the sample database.

    It sounds like your database hasn't been started yet so do this:
    Try typing svrmgrl at the c:> -- if it doesn't work you might either have to go to the proper directory or type sqlplus to get an sql:> prompt (I don't remember it's been a while) but the rest I am pretty sure about---
    When you get the svrmgr prompt:
    use (i think) "connect internal"
    and "oracle or Oracle" as password
    once you do this
    it should say connected
    then use: svrmgr:>shutdown -- shutsdown DB
    then use: svrmgr:>startup -- starts DB
    hopefully then you can access your database through SQL Plus

  • I downloaded Aperture and now I'm getting a "There was an error opening the database for Library " and I can't do anything else.  How can I fix it so I am once again able to run Aperture?

    I Downloaded Aperture from the Apple Website then proceeded to download all my picture's frp, IPhoto.  The very next time I opened Aperture an error poped up stating, There was an error opening the database for Library "blank".  I can't do anything with the program but hit the cancel buttom which closes the program.  How do I fix it?

    Is "blank" the name of your Aperture Library? If not, then Aperture is pointing to the wrong Library. Hold down the option (⌥) key while you launch Aperture by clicking it in the Applications Folder. Then select the correct library and press the "choose" button.
    If that does not help, try to repair your library:
    Locate Aperture library in Finder. Holding down the keys option (⌥) +command (⌘) and double click on Aperture Library to show the First Aid dialogue:
    Then try to start Aperture again.  If that also should fail, try the other steps in Aperture 3: Troubleshooting Basics: http://support.apple.com/kb/HT3805
    Good Luck
    Léonie

  • How to determine database growth for new B1 instalation

    Hello B1 people,
    I'm working on the capacity planning of my new business one project and must know how to determine database growth. Does anyone did something like that before?
    Wich tables should I consider?
    Thanks in advance.

    Hello Gabriel,
    I think it is difficult to make any predictions about database growth because this depends on the volume of your business transactions, the number of users, the continuity of your master data...
    For example a small number of users can create a lot of transactions (accounting, logistics) with big documents like sales orders with more than 100 items, or a lot of users who primarily look up things but only create small transaction won't create too much data and thus influence database growth in totally different ways.
    You should collect information about the volume of daily business to make any forecasts.
    If you start with an empty database, the first big growth will be when you upload your master data, but if only few business transactions follow, you shouldn't use that first increase for your calculation.
    Is this your very first B1 installation, or do you already have B1 systems running? If you use the EWA service on a running B1 installation on a regular basis, then you will get a good impression of database growth and transaction volume but you should only use this as a basis for your calculation if the business of the new installation is similar to already running company's.
    Hope that helps,
    Sandra

  • How to use the mirrored and log shipped secondary database for update or insert operations

    Hi,
    I am doing a DR Test where I need to test the mirrored and log shipped secondary database but without stopping the mirroring or log shipping procedures. Is there a way to get the data out of mirrored and log shipped database to another database for update
    or insert operations?
    Database snapshot can be used only for mirrored database but updates cannot be done. Also the secondary database of log shipping cannot used for database snapshot. Any ideas of how this can be implemented?
    Thanks,
    Preetha

    Hmm in this case I think you need Merge Replication otherwise it breaks down the purpose of DR...again in that case.. 
    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

  • How to connect to database for all the reports FR

    Hi,
    I have developed 100 reports in production client, for testing purpose I have moved to
    test client. How can I connect to database for all the reports at a time?
    Regards
    Taruni

    Hi Taruni,
    You can connect to the database connection for all the reports through workspace in HFM.
    Connect to HFM Workspace-->click on Explore option-->and click on Tools-->click on Data Base Connection Manager and change the respective connections from Production Instance to Test Instance with required information, and than you will be able to connect to Test database for all the reports at a time.
    Regards,
    Srikanth

  • Aperture (3.4.1) no longer opens and the following message appears: There was an error opening the database for the library "/ Users / Andrea / Pictures / Aperture 3 Library.aplibrary." How can I solve this problem? Thanks

    I was using Aperture (3.4.1), when he appeared a notice that asked me to stop the Mac with the power button. When I restart Aperture no longer opens and the following message appears: There was an error opening the database for the library "/ Users / Andrea / Pictures / Aperture 3 Library.aplibrary."
    How can I solve this problem?
    Thanks

    After a system crash your Aperture Library may be corrupted, because Aperture may not have been able to finish the ongoing database transactions.
    Have you tried the Aperture Library First Aid Tools?
    Aperture 3 User Manual: Repairing and Rebuilding Your Aperture Library
    Try "Repair Database", and if this does not help: "Rebuild Database"
    Regards
    Léonie

Maybe you are looking for

  • APPCRASH

    I previously submitted the following APPCRASH to the community: Problem Event Name:APPCRASH Application Name:iTunes.exe Application Version:11.4.0.18 Application Timestamp:54045c47 Fault Module Name:CoreAudioToolbox.dll Fault Module Version:7.9.8.6 F

  • I can't regester my new credit card?

    Dear Apple,     I purchased new credit card and every time I login to change my personal information it give a message said that my credit card is wrong?? I used this car with ebay and other website and it's work perfectly. Please I needs you help. e

  • WS Adaptive Model: ClassCastException at WSGenericModelClass

    From a Web Dynpro application, I'm trying to connect to the KM through the webservice interface. For this, I'm using the Webservice Adaptive Model. And everything works fine, except the error handling. For example, when I try to find resources, and I

  • PO format

    Hi, We have set PO format in smart forms and layout has ben done. When we use one message type ZNEU2 PO Format is coming correctly, whereas if we use NEU message type then the expected format is not coming. How to solve this? Will document type contr

  • Is it possible to view my purchase history?

    Is it possible to view my purchase history?and how?