Renaming issues of Database.

Hi All,
We had replication set up for a database, which we removed few days back and now we want to rename the database, when I tried with 
USE master;
GO
ALTER DATABASE abc
Modify Name = zabc 
GO,  which is throwing an error as Msg 18855, Level 11, State 1, Line 1
Can not rename the database name because it is published or it is a distribution database used by replication.
I verified the publisher server under replication>> publications, no database as such being replicated and verified subscriber server>> replication>>  under subscribers no database as such participating  in replication.
When I googled I got this :
Can not rename the database because it is published or it is a distribution database used by replication. (Error 18855)
One reason for this to occur is because your database is being replicated. To rename the database you need to disable the replication and then reinstate it afterwards (if required).
To disable replication:
Right click the Servername -> Replication node in Management Studio and Click Disable Distribution. Run through the wizard. Once the database is renamed right click the Replication node node again and select Configure Distribution. You should be able to
accept the defaults if Replication was previously configured.
But if we disable distribution,whole replication setup for all databases will be down, please correct me if I am wrong.
SQL version is 
Microsoft SQL Server 2012 - 11.0.5058.0 (X64) 
May 14 2014 18:34:29 
Copyright (c) Microsoft Corporation
Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
Please help me how to proceed with this.
Thanks.

Check what output you get when you run the query.
SELECT name,is_published, is_subscribed, is_merge_published, is_distributor
FROM sys.databases
WHERE name = 'Databasename'
If the above query gives 1 for any of this, then you have not cleaned replication properly. You need to clean it properly, but the method you mentioned is not the correct method.
You are right if you disable replication then all other databases which are part of replication is also affected. You need to run the below command against the database in question
sp_removedbreplication 'database_name'
http://msdn.microsoft.com/en-us/library/ms188734(v=sql.110).aspx
Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

Similar Messages

  • How do I rename an XE database on a Windows 2003 Server?

    Ok. I'm attempting to rename a freshly installed XE database on a Windows 2003 Server. It looks like there is no getting around the fact that the database gets named "XE" during installation. Because there could potentially be multiple installations of XE in my organization, I thought it'd be a good idea to disambiguate the installations by renaming them to match their function. In this particular case, I'd like to rename the database to "CTXMGMT". It will be a data repository for our Citrix farm administration programs.
    Here is what I've performed thus far:
    1. Installed Oracle 10g XE on one of our Windows 2003 Server, Standard Edition machines.
    2. Verified that the installation was performed correctly by making sure the 'Database Home Page' loads correctly through Internet Explorer, and by performing a few Select statements on the database (i.e. select name from v$database;)
    * * I then began following instructions from this document (http://www.utexas.edu/its/unix/reference/oracledocs/v92/B10501_01/server.920/a96652/ch14.htm#1004735) to rename the database. Note: I'm only trying to change the name of the database, not the ID.
    3. Shutdown the database
    4. Opened the database in MOUNT mode
    5. Ran the NID utility. Here's the actual input/output to/from the NID utility:
    C:\oraclexe\app\oracle\product\10.2.0\server\BIN>nid target=sys/manager@xe DBNAME=CTXMGMT SETNAME=YES
    DBNEWID: Release 10.2.0.1.0 - Production on Mon Jul 10 15:55:10 2006
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to database XE (DBID=2476560070)
    Connected to server version 10.2.0
    Control Files in database:
    C:\ORACLEXE\ORADATA\XE\CONTROL.DBF
    Change database name of database XE to CTXMGMT? (Y/[N]) => Y
    Proceeding with operation
    Changing database name from XE to CTXMGMT
    Control File C:\ORACLEXE\ORADATA\XE\CONTROL.DBF - modified
    Datafile C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\UNDO.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\SYSAUX.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\USERS.DBF - wrote new name
    Datafile C:\ORACLEXE\ORADATA\XE\TEMP.DBF - wrote new name
    Control File C:\ORACLEXE\ORADATA\XE\CONTROL.DBF - wrote new name
    Instance shut down
    Database name changed to CTXMGMT.
    Modify parameter file and generate a new password file before restarting.
    Succesfully changed database name.
    DBNEWID - Completed succesfully.
    6. After running the NID utility from a separate DOS Window, I attempt to shutdown the newly renamed database from the first DOS Window I used in steps 3 & 4 from above (i.e. to shutdown the database and then start it in MOUNT mode) but I receive this error:
    ORA-03113: end-of-file on communication channel
    This is somewhat expected since the SQL*Plus connection in this window probably had "the bottom pulled out from under it" when the database was renamed.
    However at this point I'm unsure about what state the database is in. Is it down? Is it up? Logic would sort of dictate that the database was left in the MOUNT state, which is the state it was in when the database name was changed. However, the only way I'm able to get back in to the database is by doing the following
    a. Opened a new DOS window
    b. entered "set ORACLE_HOME=C:\oraclexe\app\oracle\product\10.2.0\server"
    c. entered "set ORACLE_SID=XE"
    d. entered " sqlplus "/ as sysdba" "
    e. at SQL> prompt, entered "startup"... which produces:
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 285212672 bytes
    Fixed Size 1287016 bytes
    Variable Size 92277912 bytes
    Database Buffers 188743680 bytes
    Redo Buffers 2904064 bytes
    ORA-01103: database name 'CTXMGMT' in control file is not 'XE'
    SQL>
    From here I don't know what to do. According to the ORA-01103 error message, it looks like I need to change the database name in the control file to "CTXMGMT", but I'm not sure how I should go about that. The control file is a binary file, so I can't just open it up with Notepad and type in a new database name.
    I suspect that even once that is done that the listener.ora (and maybe the tnsnames.ora file?) will have to be edited to include the new "CTXMGMT" name, but I'm not sure how exactly those files should look to incorporate the new database name.
    Also, would the names of services have to be changed in Windows as well? (i.e. Would the Windows service named "OracleServiceXE" have to be renamed to "OracleServiceCTXMGMT" ?)
    In short, I really just need to know how to rename an XE database on Windows appropriately. The steps described above represent as far as I've gotten. If I'm going about it incorrectly could someone shed some light on the correct steps to follow? The more detailed the better. Thanks.
    - Gary

    Okay, I've....
    1) Reinstalled XE, to start from scratch
    2) Went in to SQL*Plus, did a "create pfile from spfile;"
    3) Shutdown the database
    4) Started it up in MOUNT mode
    5) Ran NID, to change the database name from 'XE' to 'CTXMGMT'
    6) Shutdown the database again
    7) Edited the pfile to change the database name (i.e. "db_name='CTXMGMT'")
    8) Started up the database
    And that worked! So that's good... but now my question is:
    How do I change the SID for the database? Currently, the instance name for the database is still 'XE'....
    SQL> select instance_name
    2 from v$instance;
    INSTANCE_NAME
    xe
    I'd like it so a connection could be made to the database with the tnsnames.ora file looking like this:
    CTXMGMT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(Host = rodin)(Port = 1521))
    (CONNECT_DATA = (SID = CTXMGMT))
    Could someone explain how to get the database to this state? Thanks.
    - Gary

  • Rename State Service Database in SharePoint 2010

    As the title says, I want to rename/change database for State Service Application.
    I did some experiments wit it as suggested by others but I think I somehow managed to broken my service.
    I can SharePoint Products Configuration again and I got another database State_Service_GUID which I didnt want at the first place.
    I followed the steps on
    http://technet.microsoft.com/en-us/library/ff851878.aspx#State and it failed as well, and I am in middle of no where.
    I am even not sure if my service is properly running or not. I can see it in Service Applications page in Central Administration as Started but I cannot select it and use ribbon operations on it.

    Hi ,
    Rename the Service Database 
    Go to SQL Management Studio and rename the database
    Open SQL Management Studio. You may have to go to your SQL Server to do this.
    Attach to the instance that host SharePoint
    Find your database
    Right click on the database name and choose Rename
    Delete the GUID off the end of the name or make the name whatever you want then press Enter. SQL Database is now renamed. Notice I changed all of the spaces to underscores. Why? Because DBAs hate spaces in names more than they hate GUIDs and I am a nice
    guy.
    Now go to your SharePoint Server and use PowerShell to set the database name.
    Click Start > All Programs > Microsoft SharePoint 2010 Products > SharePoint 2010 Management Shell. If you have UAC enabled be sure to run it as Administrator.
    Then run the following line. Be sure to replace your info for service app and database name.
    Now you can celebrate you have saved the world another GUID. I have a master post here with all of the anti GUID posts linked in one place. Right here.
     Thx
    Surendra Singh, MCITP: SharePoint Administrator 2010

  • Rename SCCM SQL Database is this possible

    I would like to rename the SCCM 2012 database. I found a few links explaining how to rename the SCCM Database in SCCM 2007 using a site reset but I have not found anything on SCCM 2012. http://blogs.technet.com/b/configurationmgr/archive/2009/10/27/renaming-the-configuration-manager-2007-database.aspx
    Does anyone know if renaming the SCCM 2012 DB is possible. I would only like to rename it and not move it. I was able to get to the change SQL configuration options in the site reset wizard. The SQL server name could be change but the database name
    was grayed out and could not be changed.
    Thank you in advanced

    The reason for the rename is because we would like to use Configuration Manager 2012 Web Frontend for remote control access. This will give our Helpdesk and Desktop techs a web interface to be able to use for remote control feature without requiring the
    management console installed. We used something similar in the past and was very popular in our users. The problem is that the software is looking for an SCCM DB that is named CM_OURSITECODE. When setting up our SCCM 2012
    DB we used a different name for the database SCCM2012DB. I would like to  change our database name to CM_OURSITECODE so this Web Frontend software will work.
    I see where it says it is supported but that is for SCCM 2007 and we are using 2012. When I try the steps in the post I can change the server name but the database name is grayed out and can't be changed. In my case I would
    like to leave the server name alone and just change the database name. With the option being grayed out I'm thinking that MS has changed something to not allow DB name changes in SCCM 2012. I have not been able to find any documentation that states it is supported
    or not.
    IIRC, it's not best practise to talk directly to the DB either. This vendor probably should have used the SMS Provider instead.
    SMS Provider vs SQL Server: Although Configuration Manager leverages SQL Server for data storage, SQL Server is NOT the primary programming interface to Configuration Manager. The primary programming interface to Configuration Manager is the SMS Provider (WMI) - object creation and modification must be done via the SMS Provider. You should consider SQL Server as providing read-only access to Configuration Manager data for querying and reporting purposes. This is not a matter of permissions, rather matter of maintaining data integrity.
    http://msdn.microsoft.com/en-us/library/dn529009.aspx
    Tim Nilimaa-Svärd | Blog: http://infoworks.tv | Twitter: @timnilimaa

  • Renaming the Oracle10gXE database name

    Hi,
    Oralce10gXe
    Linux Os
    How to rename the database name from 'XE' (default) to for eg. 'TEST' ?
    what are the exact steps for it ?
    Regards

    Hi,
    it is possible to change the SID of XE like any other Oracle edition. The easiest way to do so is to use the nid (newid) utility in $ORACLE_HOME/bin (you shutdown the database cleanly, open in mount state and then execute nid target=sys/password@xe dbname=newSID, then change the dbname in init/spfile, rename the init/spfile to contain the new sid, generate new password file using passwd, and open the database with resetlogs).
    However, I would not recommend renaming the XE database. I did that, and it has been a pain, since our developers changed the hardware several times, wished for new testing and development installations, and I had to play again and again with the changing of default oracle scripts. As with XE, you can run only one XE edition instance on the server (that does not change by renaming it). With that in mind, there are multiple oracle scripts with ORACLE_SID=XE hardcoded in them. Namely the /etc/init.d/oracle-xe, then all the scripts in $ORACLE_HOME/config/scripts related to starting/stopping and backing up the db, not forgetting the oracle_env.sh...
    Having the experience, I would simply recommend leaving the ORACLE_SID=XE, and changing the service_name, or the TNSNAMES.ora alias. That should be sufficient for the developers to "see a pretty name".
    Kind regards,
    Martin

  • Renaming a 10g Database

    hi experts,
    I'm planning to rename a 10g database that runs on Windows. I snot being used at this time.
    There are several steps and I (think) I have all of them noted.
    Just looking for advice or tips from others who have renamed an Oracle database.
    Any terrible experiences as a result?
    Thanks! John

    Hi John,
    I am on unix but done that quite a few times. Startup mount and do:
    nid target=sys/<your password>@yourdb DBNAME= newname
    Just don't forget to make changes to your init.ora, orapwd - and if you plan to change the service name, the tnsnames & llistener as well.
    HTH

  • Cloning and Renaming an Oracle Database

    Hi All,
    Can someone please tell me, in brief, the steps to;
    1. Create a clone of a database?
    2. Rename an existing Database?
    Any help will be greatly appreciated.
    Thanks in advance.

    Hello,
    1. Create a clone of a database?
    You can use RMAN Duplicate and if you have access to metalink you can find tons of documents and notes for cloning
    2. Rename an existing Database?
    Here is stepwise procedure to rename existing database.
    1. Take full backup (RMAN, export or datapump)
    2. Stepwise instructions (Windows but it should very similar for unix/linux as well).
    Edit tnsnames.ora entry
    orcl =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = orionnet-24d24b)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    Add new one
    ODS =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = orionnet-24d24b)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = ODS)
    C:\ set ORACLE_SID=orcl
    C:\>sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Dec 21 20:35:17 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options
    SQL> select instance_name, status from v$instance;
    INSTANCE_NAME    STATUS
    orcl             OPEN
    SQL> create pfile='C:\oracle\product\10.2.0\ods\admin\pfile\initorcl.ora' from spfile;
    File Created
    SQL> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount pfile='C:\oracle\product\10.2.0\ods\admin\pfile\initorcl.ora';
    ORACLE instance started.
    Total System Global Area  209715200 bytes
    Fixed Size                  1248116 bytes
    Variable Size              67110028 bytes
    Database Buffers          134217728 bytes
    Redo Buffers                7139328 bytes
    Database mounted.
    Open a new cmd session from Start-> Run -> cmd
    C:>nid TARGET=sys/whateveryourpassword@orcl DBNAME=ODS SETNAME=Y
    where orcl=old database name, ODS=new database name
    DBNEWID: Release 10.2.0.1.0 - Production on Sun Dec 21 20:43:33 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to database ORCL (DBID=2232941135)
    Connected to server version 10.2.0
    Control Files in database:
        C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL01.CTL
        C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL02.CTL
        C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL03.CTL
    Change database name of database ORCL to ODS? (Y/[N]) => Y
    Proceeding with operation
    Changing database name from ORCL to ODS
        Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL01.CTL - modified
        Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL02.CTL - modified
        Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL03.CTL - modified
        Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\SYSTEM01.DBF - wrote new name
        Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\UNDOTBS01.DBF - wrote new name
        Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\SYSAUX01.DBF - wrote new name
        Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\USERS01.DBF - wrote new name
        Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\TEST.DBF - wrote new name
        Datafile C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\TEMP01.DBF - wrote new name
        Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL01.CTL - wrote new name
        Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL02.CTL - wrote new name
        Control File C:\ORACLE\PRODUCT\10.2.0\ORADATA\ODS\CONTROL03.CTL - wrote new name
        Instance shut down
    Database name changed to ODS.
    Modify parameter file and generate a new password file before restarting.
    Succesfully changed database name.
    DBNEWID - Completed succesfully.
    C:\>oradim -DELETE -SID orcl
    Instance deleted.
    Edit initorcl.ora file and replace "ORCL" with "ODS"
    C:>oradim -new -sid ODS -intpwd mypassword -startmode AUTO -pfile 'C:\oracle\product\10.2.0\admin\ODS\initorcl.ora'
    Instance created.
    C:\>set ORACLE_SID=ODS
    C:\>sqlplus "/as sysdba"
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Dec 21 20:50:30 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> startup mount pfile='C:\oracle\product\10.2.0\admin\ODS\pfile\initorcl.ora';
    ORACLE instance started.
    Total System Global Area  209715200 bytes
    Fixed Size                  1248116 bytes
    Variable Size              67110028 bytes
    Database Buffers          134217728 bytes
    Redo Buffers                7139328 bytes
    ORA-01103: database name 'ODS' in control file is not 'ORCL'
    Note: If you don't modify initorcl.ora file and replace it with ODS, you will get ORA-01103 error.
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    Edit initorcl.ora file and replace "ORCL" with "ODS"
    ORACLE instance shut down.
    SQL> startup mount pfile='C:\oracle\product\10.2.0\admin\ODS\pfile\initods.ora';
    ORACLE instance started.
    Total System Global Area  209715200 bytes
    Fixed Size                  1248116 bytes
    Variable Size              67110028 bytes
    Database Buffers          134217728 bytes
    Redo Buffers                7139328 bytes
    Database mounted.
    SQL>
    SQL> alter database open;
    Database altered.
    NOte: My verification if TESTUSER exists or not after database name change
    SQL> select username from dba_users;
    USERNAME
    SYS
    SYSTEM
    TESTUSER
    OUTLN
    MDSYS
    ORDSYS
    ANONYMOUS
    EXFSYS
    DBSNMP
    WMSYS
    XDB
    USERNAME
    ORDPLUGINS
    SI_INFORMTN_SCHEMA
    DIP
    TSMSYS
    15 rows selected.
    NOte: ANother test for object existence
    SQL> select table_name from dba_tables where owner='TESTUSER';
    TABLE_NAME
    TESTME
    MY_OBJECTS
    Note: Final test
    SQL> select count(*) from testuser.my_objects;
      COUNT(*)
         38174Regards

  • How to rename the search databases in sharepoint 2013

    Hi all,
    I have configure the search in sharepoint 2013 and 4 databases has been created in sqlserver.by default db are got created with GUID n sh i want change those DB names .
    could you pls help me how can i change the DB names.
    THanks
    Dhana
    sekhar

    Hi,
    Please check the below links,
    https://technet.microsoft.com/en-us/library/jj219654(v=office.15).aspx
    https://technet.microsoft.com/en-us/library/ff851878(v=office.15).aspx
    http://blogs.technet.com/b/meamcs/archive/2012/10/23/renaming-sharepoint-2010-search-service-database-name.aspx
    Don't forget to mark it as an Answer if it resolves your issue and Vote Me as helpful if it useful.
    Mahesh

  • SQL DBA renamed the Search databases, and now search isnt working

    Our SQL DBA, saw the GUIDs and decided to rename the databases, didnt bother to tell anyone that they did it, now search is not working at all.
    Should we reconfigure a new search of try to figure out how to put SharePoint search to the renamed DATABASES?
    I also have found that the prior names of the Databases what they were with the GUIDs and was thinking of telling the DBA to rename them back, would this causes an issues... and this is in PRODUCTION SharePoint...

    You can get the "old" names via Get-SPDatabase. Rename the databases within SQL until you have a chance to follow the proper procedure. The proper procedure is outlined here:
    http://technet.microsoft.com/en-us/library/jj219654(v=office.15).aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Case issue in Database table

    Hi All,
    We have an issue of lowercase in database table and we want to convert that lowercase data to upper case. The code for doing this operation is as follows:
    SELECT * FROM zehs_volumes INTO TABLE i_volumes_temp.
    LOOP AT i_volumes_temp.
    DELETE zehs_volumes FROM i_volumes_temp.
    IF sy-subrc is INITIAL.
      COMMIT WORK.
    ELSE.
      ROLLBACK WORK.
    ENDIF.
    TRANSLATE i_volumes_temp-zehs_business TO UPPER CASE.
    MODIFY i_volumes_temp.
    CLEAR i_volumes_temp.
    ENDLOOP.
    SORT i_volumes_temp BY SUBID ZEHS_BUSINESS ZEHS_SITE ZEHS_ROLE
                           ZST_DATE ZED_DATE.
    DELETE ADJACENT DUPLICATES
    FROM i_volumes_temp COMPARING SUBID ZEHS_BUSINESS ZEHS_SITE
                                  ZEHS_ROLE ZST_DATE ZED_DATE.
    MODIFY zehs_volumes FROM TABLE i_volumes_temp.
    IF sy-subrc is INITIAL.
      COMMIT WORK.
    ELSE.
      ROLLBACK WORK.
    ENDIF.
    The problem wid the above code is that it first clears the entire database table and then fills it with the modified data from the internal table. But we do not want to take risk of emptying the database table. Is there any way out to perform the above operation?
    Thanks in advance
    Regards,
    Yogesh Sharma

    Hi Karthik,
    Thanks for replying.
    In our case the scenario is we need to delete wrong entires in the database table based on the primary input fields. There is already a utility to do so. But in the table some of the entries are present in the lower case.
    For eg. Suppose we need to delete entry with field zehs_business = "Pioneer". When we input this SAP interpret it as PIONEER and we get an error message "No data exist".
    So the code should we in such a way that all the value in field zehs_business should be translated to upper case otherwise SAP will give an error message of non-existence of data.
    The code which you gave adds one more entry in database table with zehs_business = "PIONEER". Now the database table have two records one with "Pioneer" and other with "PIONEER". After the execution of DELETE statement only the record with zehs_business = PIONEER gets deleted....and the other record still exist.
    Is there any way to avoid above situation....

  • Install HRCS 9.0 R5 with Linux Issue: upgrade Database HRCS 9.0 from PT8.52 to PT8.53

    Folks,
    Hello. I have been installing HCM and Campus Solution 9.0 with PeopleTools8.53. Server machine is Oracle Linux 5.10 and client machine is Windows XP.  My internet architecture is WebLogic11g/Tuxedo11g/OracleDatabase 11gR1. Peopletools 8.53 runs correctly in browser.
    In Oracle Linux 5.10 Database Server machine, I run the scripts "createdb10.sql, utlspace.sql, hrcddl.sql, dbowner.sql, psroles.sql, psadmin.sql and connect.sql" one by one. Then I use Data Mover to load data from Windows XP into Oracle Linux 5.10 DB instance HRCS90. The Data Mover script hrcs90ora.dms completes successfully in Windows XP. Configuration Manager is set up correctly.  But when I login into Application Designer, I cannot login and get the message as below:
    "Security Table Manager (Get): The database is at release 8.52.  The PeopleTools being run require databases at release 8.53."
    I have been following the document http://docs.oracle.com/cd/E37306_02/psft/acrobat/PeopleTools-8.53-Upgrade_02-2013.pdf to upgrade HCM and Human Resources 9.0 Revision 5 Database Instance HRCS90 in Oracle Database Server with Linux. I have been following chapter 4 task by task to do. Actually, I have run 4 scripts into HRCS90 as below:
    Task 4-3-5: run rel853.sql at SQL> in Linux.
    Task 4-3-6: run grant.sql at SQL> in Linux.
    Task 4-5-3: run ddlora.dms in Windows XP Data Mover into HRCS90.
    Task 4-6: run msgtlsupg.dms in Windows XP Data Mover into HRCS90.
    Then need to run Task 4-7 to copy project ppltls84cur Project in Application Designer. When login into Application Designer with Database HRCS90 and UserID and pwd PS, I get the same error message as below:
    "The database is at release 8.52. The PeopleTools being run require Database at release 8.53."
    Application Designer is supposed to login by Task 4-7 to copy projects but it cannot. I have tried to fing out what's wrong as below:
    In task 4-1-3: I cannot run script dbtsfix.sqr in Linux and Windows XP.
    In task 4-1-9: script ptupgibdel.sql does not have the string "End of PT8.53". There is no script ptupgibdel853.sql to run.
    In task 4-3-6: when run script grant.sql, table PSSTATUS and PSACCESSPRFL don't exist. There is only PSOPRDEFN table.
    I continue to do task by task in chapter 4 until task 4-27 that's the end, but Application Designer still cannot login. All of Application Engine Programs and SQR Programs cannot run.
    My questions are:
    First, does Oracle Database HRCS90 has table PSOPRDEFN only without table PSSTATUS and PSACCESSPRFL ?
    Second, what's the error by task 4-7 when Application Designer still cannot login ?
    Third, why Application Designer still cannot login a the end of doing chapter 4 task 4-27 ? How to solve the issue ?
    Thanks.
    Thanks.

    I'm not quite sure what you are missing, but it looks like you missed a script which could cause problems.  You need to look through your logs for errors. Are you running rel853 as the AccessID user?  I don't know how you would trash PSSTATUS in this process.
    You don't mention running this.
    Task 4-3-2:  Creating Tablespaces
    This step runs the PTDDLUPG script, which builds new tablespaces as part of the upgrade to the new PeopleSoft release.
    It creates tablespace PSIMAGE2, which doesn't exist in the datamover load you did.  Oracle moves and puts around 208 tables here when you run rel853 from what I see.
    The first line of rel853 is
    UPDATE PSSTATUS SET TOOLSREL='8.53',
                      LASTREFRESHDTTM = SYSDATE
    This is what changes the tools release, sometimes people just run this one update to gain quick and dirty access to a different version.
    I pulled this download and ran through it myself without incident doing all the steps you say, adding in 4-3-2 which you seemed to have skipped.  I built a system database.
    My hcengs.log shows
    Importing  PSSTATUS
    Creating Table  PSSTATUS
    Import  PSSTATUS  1
    Building required indexes for PSSTATUS
    Updating statistics for PSSTATUS
    Records remaining: 7686
    After import, PSSTATUS is
    SQL> select toolsrel from sysadm.psstatus;
    TOOLSREL
    8.52
    After running rel853n it's now
    SQL> COMMIT
      2  ;
    Commit complete.
    SQL> SPOOL OFF
    SQL> select toolsrel from sysadm.psstatus;
    TOOLSREL
    8.53
    I ran the other 3 quick scripts.  Not sure if it was necessary, but I reset the passwords and re-encrypted them with the new 8.53 datamover for the new salted encryption and fired up app designer.  It works.  By the way, you should probably run rel853n, it utilizes "newer" (for PeopleSoft that is) data-types than just rel853.sql that were delivered with the 9.0 application line.  Since this is a new 9.0 based app build it should be used.

  • Namespace replace/rename issue in ALSB

    Hi,
    As part of our project we have been using ALSB3.0. In one of our outbound Proxy flows we have configured transform stage which intern executing XQuery transormation. Post transformation it publish message on BEA JMSTopic in following format.
    *<?xml version="1.0" encoding="UTF-8" ?>
    <ref:ABCMessage xmlns:ref="http://www.indteur.org/abc/2.1/reference">
    <ref:FromEANNumber>NA</ref:FromEANNumber>
    <ref:SenderIdentifier>
    <ref:SenderIDType></ref:SenderIDType>
    <ref:IDValue></ref:IDValue>
    </ref:SenderIdentifier>
    <ref:SentDate>2009-10-10T18:41:27.870-04:00</ref:SentDate>
    <ref:Product>
    <ref:RecordReference></ref:RecordReference>
    <ref:NotificationType>04</ref:NotificationType>
    <ref:RecordSourceName></ref:RecordSourceName>
    </ref:Product>
    </ref:ABCMessage>*
    Please help us in rename/replace namespace prefix from 'ref:' to 'ns1:' at post transformation and before publishing the saem to JMS Topic.
    Thanks in advance........

    Personally I would mandate that what ever is the consumer of the JMSQ should be compatible with XML name space constructs. If it is not under our control then one solution would be
    1) Convert the xml to string
    let $strContent := fn-bea:serialize($body)
    2) Replace the ref: with ns1:
    return fn-bea:inlinedXML(fn:replace( $strContent, "ref:", "ns1:") )
    This is a very bad solution but should solve your issue if XML is not huge (huge XML will consume lot of cpu for this transformation ) .Ideally I would recommend changing the behavior of the message consumer.
    Also you can try defining name space for http://www.indteur.org/abc/2.1/reference as ns1 in sbconsole proxy name space definitions. I believe even this will work but never tried.Let me know if this works for you.
    My two cents
    Manoj
    Edited by: mneelapu on Oct 13, 2009 9:18 AM

  • Exchange 2010 DAG netowrk replications issues - Causing database copies to be disconnected and resynchronizing.

    My
    environment is as follows.<o:p></o:p>
    We have 3 exchange 2010 servers.<o:p></o:p>
    EX1, EX2, DREX1. All servers are exchange 2010 14.2 build 247.5<o:p></o:p>
    EX1 and EX2 have two nics, one LAN and one for BACKUP <o:p></o:p>
    The dag is configured to to communicate to all three.<o:p></o:p>
    The IP for EX1 is 192.168.100.51 - LAN, switch A; 160.100.3.51 - BACKUP, switch B<o:p></o:p>
    The IP for EX2 is 192.168.100.52 - LAN, switch A; 160.100.3.52 - BACKUP, switch B<o:p></o:p>
    DREX1 is located in another network. It is in another building connected via vpn. The ip
    for DREX1 is 192.170.100.51. There is no BACKUP network for this server<o:p></o:p>
    (These are not the actual address, but the concept is similar)<o:p></o:p>
    The dag network configuration is as follows.<o:p></o:p>
    DAGNetworkDR has a subnet of 192.170.100.0/24; Network Interface of 192.170.100.51<o:p></o:p>
    DAGNetwork01 (LAN) has a subnet of 192.168.100.0/24; Network Interfaces of 192.168.100.51
    and 192.168.100.52<o:p></o:p>
    DAGNetwork02 (BACKUP) has a subnet of 160.100.3.0/24; Network Interfaces of
    160.100.3.51 and 160.100.3.52<o:p></o:p>
    Last Friday, 3/7/14 something happened.<o:p></o:p>
    To lead up to that, I noticed the issue because we have DPM 2010 making 15minute express
    full backups of our exchange databases when I reviewed the backup jobs, the
    exchange database backups using dpm2010 failed all weekend long starting at
    11:00pm that Friday.<o:p></o:p>
    The issue that occurred was that the database copies went to a status of Disconnected and
    Resynchronizing, and after about 30 seconds, the status would show
    Resynchronizing.<o:p></o:p>
    All attempts to resolve this with the research methods failed.  Deleting the
    logs and reseeding failed, suspending, then rebuilding failed.<o:p></o:p>
    Creating a new database worked, creating a database copy worked, but seeding the copy
    failed. All with the same pattern, a status of Disconnected and
    Resynchronizing, and after about 30 seconds, and the status would show
    Resynchronizing.<o:p></o:p>
    The database was mounted on EX2, and seeding to EX1
    DREX1 has no issues.<o:p></o:p>
    All the DAG networks were in a good status, all Green and all up.  I could ping from
    EX1 to EX2 and from EX2 to EX1 on both networks fine.<o:p></o:p>
    In the middle of the week, about 3/12/14, we resolved the issue. We rebooted EX1, no
    fix, but after rebooting EX2, it all resolved.  It did a fail over to DREX1. I think it failed to do the failover to EX1. However, when it came back up, it was happy, it was reseeding slowly. After about an hour and a half, it
    was all healthy.<o:p></o:p>
    We thought it was all good EXCEPT, on Friday night at 11:00pmish on 3/14/14, the same
    issue occurred; a status of Disconnected and Resynchronizing, and after about
    30 seconds, the status would show Resynchronizing.<o:p></o:p>
    The database was mounted on EX2 and seeding to EX1 again. I did not notice the
    issue until I performed my review of the backup jobs again on Monday.<o:p></o:p>
    Late Monday morning, my boss and I were looking at more articles, but all the same results,
    delete the database copy and reseed. Which we knew would not work.<o:p></o:p>
    I mentioned that it was strange because the networks were all up. What made us try the next
    scenarios was just "luck" I guess. I made a statement about not remembering
    which networks DAG replication took place over.  Again, we have a LAN and
    a BACKUP network.  Bother were listed to use replication, so we decided to
    disable replication over the BACKUP network in the EMC. Immediately, the
    database copies switch to healthy and started seeding.<o:p></o:p>
    Later that evening I enabled replication over the BACKUP network and it failed again with
    a status of Disconnected and Resynchronizing, and after about 30 seconds, the
    status would show Resynchronizing.  I disabled the replication over the
    BACKUP network and the database copy went back to healthy<o:p></o:p>
    The last round of windows updates were pushed to these boxes the Friday before the
    issues began, 2/28/14.  I don't believe the updates to be the issue. <o:p></o:p>
    Can anyone make any suggestions as to where to look?  It worked with the BACKUP
    network enabled to so long that is eluding me as to why the issues would start
    all of a sudden. I am also confident that the switch configuration for the
    BACKUP network has not been changed at all in at least 2-3 months.  I am
    still open to look at the config. Please help if you can.<o:p></o:p>
     <o:p></o:p>
    Lastly, this is more of a monitoring thing, if anyone can suggest a good way to monitor
    the database copies so that I can be alerted when the status changes.  We
    use WhatsUpGold 16.2 to monitor the devices.  <o:p></o:p>
    Thanks for any future assistance.<o:p></o:p>
    Ian
    Ian

    You don't have to enable the Replication on Backup Network.
    You should collapse your DAG network.
    http://blogs.technet.com/b/timmcmic/archive/2011/09/26/exchange-2010-collapsing-dag-networks.aspx
    http://blogs.technet.com/b/samdrey/archive/2012/12/04/exchange-2010-dag-collapse-the-mapi-networks-in-a-dag.aspx
    Post the result of Below command:
    Get-DatabaseAvailabilityGroupNetwork 
    Cheers,
    Gulab Prasad
    Technology Consultant
    Blog:
    http://www.exchangeranger.com    Twitter:
      LinkedIn:
       Check out CodeTwo’s tools for Exchange admins
    Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

  • Issue in Database trigger for HZ_CUSTOMER_PROFILES PL/SQL: ORA-00936: miss

    Hi
    We are trying to create database trigger on update of table HZ_CUSTOMER_PROFILES when CREDIT_HOLD='Y'
    If this update is done from certain operating unit we are inserting into another custom table when compiling trigger we are getting error as given below
    LINE/COL ERROR
    5/2 PL/SQL: SQL Statement ignored
    17/2 PL/SQL: ORA-00936: missing expression
    SQL> l 5
    5*
    SQL> l 17
    17* COUNTRY,
    Copying code used for creating trigger
    CREATE OR REPLACE TRIGGER "APPS"."SDS_CREDIT_HOLD_ROW"
    BEFORE UPDATE ON HZ_CUSTOMER_PROFILES
    FOR EACH ROW
    WHEN ( new.CREDIT_HOLD='Y')
    BEGIN
    IF FND_PROFILE.VALUE('ORG_ID')=3217 THEN
    INSERT INTO SDS.SDS_CREDIT_HOLD
    (CUSTOMER_NAME,
    CUSTOMER_NUMBER,
    ADDRESS,
    CITY,
    COUNTRY,
    HOLD_BY,
    MAIL_LIST1,
    RESP_VALUE,
    ORG_ID,
    MAIL_LIST2)
    VALUES
    (select rc.customer_name,
    rc.customer_number,
    ra.address1,
    ra.city,
    ra.country,
    fu.user_name,
    fu.email_address,
    TO_NUMBER(FND_GLOBAL.RESP_ID),
    TO_NUMBER(fnd_profile.value('ORG_ID')),
    SDS_EMAIL_ADD_FNC('KAMALAKAR.GUDAPAREDDI,BRIAN.MILLER')
    from HZ_CUSTOMER_PROFILES hcp, ra_site_uses rsa,
    ra_addresses ra, ra_customers rc, fnd_user fu,
    (select distinct site_use_id from HZ_CUST_SITE_USES where site_use_code='BILL_TO'
    and status='A') site_acct
    where hcp.status='A'
    and cust_account_id in (select distinct cust_account_id from HZ_CUSTOMER_PROFILES
    where credit_hold='Y'
    and status='A')
    and hcp.site_use_id=rsa.site_use_id (+)
    and rsa.address_id=ra.address_id (+)
    and rsa.site_use_id= site_acct.site_use_id (+)
    and hcp.cust_Account_id=rc.customer_id
    and hcp.credit_hold='Y'
    and hcp.last_updated_by=fu.user_id
    and hcp.CUST_ACCOUNT_PROFILE_ID=:new.CUST_ACCOUNT_PROFILE_ID
    and hcp.ROWID=:new.ROWID);
    END IF;
    -- commit;
    END SDS_CREDIT_HOLD_ROW;
    tried to search for fix in forums checked all columns in select clause and insert they appear to be fine attaching table structure also for reference
    CREATE TABLE SDS_CREDIT_HOLD
    (CUSTOMER_NAME VARCHAR(50),
    CUSTOMER_NUMBER VARCHAR2(30),
    ADDRESS VARCHAR2(240),
    CITY VARCHAR2(60),
    COUNTRY VARCHAR2(60),
    HOLD_BY VARCHAR2(100),
    MAIL_LIST1 VARCHAR2(240),
    RESP_VALUE NUMBER,
    ORG_ID NUMBER,
    MAIL_LIST2 VARCHAR2(240))
    if any hint for fixing this issue it will be highly appreciated
    Thanks
    Kamalakar.G

    Problem is here:
    WHEN ( new.CREDIT_HOLD='Y')
    Should be using a colon in front of any new or old columns in your PL/SQL and SQL, thus try this:
    WHEN ( :new.CREDIT_HOLD='Y')
    FYI: when using triggers (unless you specify otherwise in the trigger definition itself):
    old values are referenced via :old.column and new values via :new.column

  • How to Rename Oracle 11g Database in the Linux

    I want to Rename Database.How I must do this problem.Please help me
    Edited by: 850512 on Apr 7, 2011 1:18 AM
    Edited by: 850512 on Apr 7, 2011 1:22 AM

    850512 wrote:
    Step by step pleaseBefore you proceed any further, you need to define the real problem you are trying to solve. "renaming" a database may or may not be the appropriate solution - not to mention that "rename the database" could mean several things and we don't know your definition of that phrase.

Maybe you are looking for

  • Mac book pro, Vram 256, how to improve performance of Apple Motion

    i am in video editing since one year and I don't  have any experience about video cards etc I was answered in un another thread that to drive a professional monitor I shoud buy a device as MATROX MXO2 FAMILY, my question is can that device let me byp

  • Flex mobile and PHP project

    Hi! Recently I've downloaded the Flash Builder for PHP to work with my Zend Server remotely located in OpenShift online. I did not  download and install the Zend Server physically on  my computer. Hence, when creating the Flex mobile and PHP project,

  • Ad Hoc Reporting

    Hi, Does Report Builder support ad hoc reporting on web application? Thanks

  • Error when activating ODS

    Hi,     I  am getting an error - Error during confirmation of process 000001 Message no. RSODSO_TOOLS087 when activating a ODS in the process chain. The error also says - Activation of M records from DataStore object ZDISTSEC terminated Message no. R

  • Scanning documents to word

    Hi ... I am new to Mac and have been trying to scan a document to Microsoft 2008 word, that came with my Mac. I am not having much luck. The scanner allows me to scan as a PDF, but I van'y edit the text. I would like to scan to word and be able to ed