Rename the tablename within a procedure!

I want to rename a table name within a procedure.
and the rename shud be like :
lf my table is "ABC",then the table name shud be "ABC_20061205" means "tablename_sysdate".
there is also a system procedure called sp_rename it rename the table name ,also i could not work with this,can any body help me?

An example. Replace the OLD_TABLE_NAME with the table name which you want to rename. This may be part of your procedure input parameter also.
BEGIN
EXECUTE IMMEDIATE 'ALTER TABLE OLD_TABLE_NAME RENAME TO ' || 'OLD_TABLE_NAME'||'_'||TO_CHAR(SYSDATE,'YYYYMMDD');
END;
Why would you want to rename the table inside the procedure? I would say this is a wrong approach if you hard code the table names inside the stored proc. There might be some other reason you would want to do this. Just curious to know.
Regards,
Mohana

Similar Messages

  • 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.

  • Help!How can I find the name of a calling procedure from within a procedure/function?

    Is there anyway to find out the name of calling procedure(database) from within a database stored procedure/function? This is required for creating an auditing module.
    Thanks,
    Abraham
    ===========
    email:[email protected]

    You can use this query to get the procedure names that are calling your procedure.
    SELECT name FROM all_Dependencies
    WHERE upper(referenced_name) = 'YOUR_PROC_NAME'
    In your procedure, you can get these values into a cursor and then use them one by one.
    Hope this would help.
    Faheem

  • Syntax for delete statement within a procedure

    within a procedure i tried to delete the table using
    delete table tablename;
    but it is showing error that
    PL/SQL: SQL Statement ignored
    PL/SQL: ORA-00903: invalid table name
    whether we have to use execute immediate delete table tablename;
    or this syntax is correct

    Hi ,
    i think if you want to use the delete
    then it shld be delete from tablename --> this'll delete all rows
    but if u want to use execute immediate then you might as well use TRUNCATE --> provided you need not have these data written to the log file (if you need for recovery later better use DELETE)
    i.e EXECUTE IMMEDIATE ('TRUNCATE TABLE tbl_name');
    hope this helps

  • PL/SQL: Executing a procedure from within another procedure

    Hello, I'm a newbie and I need help on how to execute procedures from within another procedure. The procedure that I call from within the procedure have return values that I want to check.
    I tried: EXECUTE(user_get_forum_info(p_forumid, var_forum_exists, var_forum_access, var_forumname));
    but I get the error message:
    PLS-00103: Encountered the symbol "USER_GET_FORUM_INFO" when expecting one of the following::= . ( @ % ; immediate
    The symbol ":=" was substituted for "USER_GET_FORUM_INFO" to continue.
    And when I tried: EXECUTE(user_get_forum_info(p_forumid, var_forum_exists, var_forum_access, var_forumname));
    I get the error message:
    PLS-00222: no function with name 'USER_GET_FORUM_INFO' exists in this scope
    PL/SQL: Statement ignored
    The procedure USER_GET_FORUM_INFO exists. (don't understand why it says "no FUNCTION with name", it's a procedure I'm executing)
    I'm stuck so thanks for any help...
    Below is all the code. I'm using Oracle 9i on RedHat Linux 7.3.
    ================================================================================
    CREATE OR REPLACE PROCEDURE user_forum_requestsaccess (
    p_forumid IN NUMBER,
    p_requestmessage IN VARCHAR2
    AS
    var_forumid NUMBER;
    var_forum_exists NUMBER;
    var_forum_access NUMBER;
    request_exists NUMBER;
    var_forumname VARCHAR2(30);
    FORUM_DOESNT_EXIST EXCEPTION;
    FORUM_USER_HAS_ACCESS EXCEPTION;
    FORUM_REQUEST_EXIST EXCEPTION;
    BEGIN
    SELECT SIGN(NVL((SELECT request_id FROM forum.vw_all_forum_requests WHERE forum_id = p_forumid AND db_user = user),0)) INTO request_exists FROM DUAL;
    EXECUTE(user_get_forum_info(p_forumid, var_forum_exists, var_forum_access, var_forumname));
    IF var_forum_exists = 0 THEN
    RAISE FORUM_DOESNT_EXIST;
    ELSIF var_forum_access = 1 THEN
    RAISE FORUM_USER_HAS_ACCESS;
    ELSIF request_exists = 1 THEN
    RAISE FORUM_REQUEST_EXIST;
    ELSE
    INSERT INTO tbl_forum_requests VALUES (SEQ_TBL_FORUM_REQ_REQ_ID.NEXTVAL, SYSDATE, p_requestmessage, p_forumid, user);
    INSERT INTO tbl_forum_eventlog VALUES (SEQ_TBL_FORUM_EVNTLOG_EVNT_ID.NEXTVAL,SYSDATE,1,'User ' || user || ' requested access to forum ' || var_forumname || '.', p_forumid,user);
    COMMIT;
    END IF;
    EXCEPTION
    WHEN
    FORUM_DOESNT_EXIST
    THEN RAISE_APPLICATION_ERROR(-20003,'Forum doesnt exist.');
    WHEN
    FORUM_USER_HAS_ACCESS
    THEN RAISE_APPLICATION_ERROR(-20004,'User already have access to this forum.');
    WHEN
    FORUM_REQUEST_EXIST
    THEN RAISE_APPLICATION_ERROR(-20005,'A request to this forum already exist.');
    END;
    GRANT EXECUTE ON user_forum_requestsaccess TO forum_user;
    ================================================================================
    Regards Goran

    you don't have to use execute when you want to execute a procedure (only on sql*plus, you would use it)
    just give the name of the funtion
    create or replace procedure test
    as
    begin
        dbms_output.put_line('this is the procedure test');
    end test;
    create or replace procedure call_test
    as
    begin
        dbms_output.put_line('this is the procedure call_test going to execute the procedure test');
        test;
    end call_test;
    begin
        dbms_output.put_line('this is an anonymous block calling the procedure call_test');
        call_test;
    end;
    /

  • Improve the performance in stored procedure using sql server 2008 - esp where clause in very big table - Urgent

    Hi,
    I am looking for inputs in tuning stored procedure using sql server 2008. l am new to performance tuning in sql,plsql and oracle. currently facing issue in stored procedure - need to increase the performance by code optmization/filtering the records using where clause in larger table., the requirement is Stored procedure generate Audit Report which is accessed by approx. 10 Admin Users typically 2-3 times a day by each Admin users.
    It has got CTE ( common table expression ) which is referred 2  time within SP. This CTE is very big and fetches records from several tables without where clause. This causes several records to be fetched from DB and then needed processing. This stored procedure is running in pre prod server which has 6gb of memory and built on virtual server and the same proc ran good in prod server which has 64gb of ram with physical server (40sec). and the execution time in pre prod is 1min 9seconds which needs to be reduced upto 10secs or so will be the solution. and also the exec time differs from time to time. sometimes it is 50sec and sometimes 1min 9seconds..
    Pl provide what is the best option/practise to use where clause to filter the records and tool to be used to tune the procedure like execution plan, sql profiler?? I am using toad for sqlserver 5.7. Here I see execution plan tab available while running the SP. but when i run it throws an error. Pl help and provide inputs.
    Thanks,
    Viji

    You've asked a SQL Server question in an Oracle forum.  I'm expecting that this will get locked momentarily when a moderator drops by.
    Microsoft has its own forums for SQL Server, you'll have more luck over there.  When you do go there, however, you'll almost certainly get more help if you can pare down the problem (or at least better explain what your code is doing).  Very few people want to read hundreds of lines of code, guess what's it's supposed to do, guess what is slow, and then guess at how to improve things.  Posting query plans, the results of profiling, cutting out any code that is unnecessary to the performance problem, etc. will get you much better answers.
    Justin

  • How to change or rename the logical system name T90CLNT090 IN BI 7

    HI Expert's,
    i am really digging for the solution of changing or renaming the logical system name technical name T90CLNT090.
    in our company we are using ecc5.0 with bi 3.5 and ecc6 with bi 7. In BW 3.5 having a connection with R/3 and the technical name of the myself bw source system(logical system) is T90CLNT090.
    In bi 7 also the logical system name is same as T90CLNT090. Because of the same system name(Logical name) it is not active in BI7 and also it's giving error when i am activating the DSO Object as Transfer structure prefix for source system T90CLNT090 is not defined.
    because of this i am not able to create the source system between r/3 also.
    so how to change this source system name for T90CLNT090.
    regards
    harikrishna N

    Hi,
    Pls follow this OSS note : 325525.
    Note 325525 - Copying and renaming systems in a BW environment
    Summary
    Symptom WARNING: THIS NOTE HAS BEEN REPLACED.  FOR MORE CURRENT AND MORE COMPREHENSIVE INFORMATION SEE NEW NOTE 886102.
    You want to copy and or rename one or more systems (database or client copy). One or more of the systems is a BW system or is connected to a BW system.
    Caution: This note only deals with problems that occur in the BW source system connections. Other problems that occur in the BW environment (indexes) are NOT dealt with. See URL http://www.service.sap.com/bw --> Services & Implementation --> System copy & Migration.
    Other terms BW, source system, OLTP, database copy, client copy, system infrastructure, transport system, connections, RFC connection, trfc, transfer structure, IDoc, ALE customizing, logical system name, system changeability, renaming systems, system copy
    Solution Several scenarios are possible in this environment. Find the scenario relevant to your situation below and execute the steps listed or read the note(s) specified:
    Scenario 1) You do not want to copy a system but only want to rename one (changing a logical system name).
               Solution scenario 1): Execute Transaction BDLS both in the client to be renamed and in the connected BWs or BW source systems. To do this, see Notes 121163 and 369758.
               Check the RFC destinations in all connected BWs/BW source systems as described in Note 524554.
               Reactivate all partner agreements that carry the new logical system name after renaming.
    Scenario 2) You want to copy the entire system infrastructure connected by the BW source system connections (that means the entire system group) by a database copy. SAP recommends this procedure for copying systems.
               Solution scenario 2):
    If you want to rename one or more of the copied systems, then execute Transaction BDLS both in the client you wish to rename and in all the connected BW and BW source systems. See Note 121163.
                        Make sure that an RFC destination exists with the new logical name in every connected BW or BW source system.
                        Reactivate all partner agreements that carry the new logical system name after renaming.
    Change the hosts in the appropriate RFC destinations so that they refer to the correct computer. For this, see Note 524554.
    Scenario 3) You want to copy a single BW system of the group by database copy.
    Scenario 3)a) You only want to exchange the hardware of your system but do not want to rename the system.
                         Solution scenario 3)a): You do not need to execute follow-up work regarding the system connections, except for adjusting the IP address in the RFC destinations of the connected system.
    Scenario 3)b) You want to keep the original system of the copy so that you have two systems after copying.
                         Solution scenario 3)b): See Note 184754.
    Scenario 4) You want to copy a single source system of the group by database copy.
    Scenario 4)a) You only want to exchange the hardware of your system but do not want to rename the system.
                         Solution scenario 4)a): You do not need to execute follow-up work regarding the system connections, except for adjusting the IP address in the RFC destinations of the connected system.
    Scenario 4)b) You want to keep the original system of the copy so that you have two systems after copying.
               Solution scenario 4)b): See Note 184322.
    Scenario 5) You want to import a client copy in a source system.
               Solution scenario 5): See Note 325470.
    Thanks & Regards,
    Suchitra.V

  • Create a text file output from within a procedure

    I can output to a file from within SQL+ using the spool command but how do I do this from within a procedure?
    I have got a table called ABC and want to output columns A and B to a new text file based on variables pased through when the procedure is run, the name of the text file should be generated from a sequence?
    Any info appreciated.
    Cheers
    Cliff

    Hi,
    U can use UTL_File Package, But the only constraint is it will write the file only on the server m/c and not on the client m/c.
    Regards
    Gaurav

  • SID Showing instead of friendly name after renaming the server

    I had to rename a windows 2012 R2 server and after I rename it, Sever is showing SID instead of user friendly name.
    Even when I try to add new domain group or user in any resourse of this server, the friendly name disappear, soon after I hit apply button.
    So far I have done the following
    disjoin/rejoin - same result
    disjoin >delete AD account > Rejoin - same result
    I confirm that I have see the new server name in AD. DNS is OK too. Could find anything (i think) related to this problem.
    I can see the following errors
    1. The server {9BA05972-F6A8-11CF-A442-00A0C90A8F39} did not register with DCOM within the required timeout. EVENT ID 10010
    2. The processing of Group Policy failed. Windows could not determine if
    the user and computer accounts are in the same forest. Ensure the user
    domain name matches the name of a trusted domain that resides in the
    same forest as the computer account. . Event ID 1110
    3. Netloon server could not add the autZ RPC interface. The service
    was terminated. the following error occured. " Not enough sesources are
    available to compete this operation  Event id 5820
    4. The UAC file Virtulatization service failed to start due to the
    following error: This driver has been blocked from loading.Event ID 7000
    I have not deleted the computer account in the second time. Then
    rejoin but this time i didn't get the message but the issue with SID
    showing instead  of friendly name is still there. These are related , i
    can see
    I can see the server in the domain and DNS also updated.
    When I run GPReuslt, it shows
    Data collected on: 20/03/2014 3:17:09 PM
    Summary
    During last computer policy refresh on
    20/03/2014 3:00:29 PM
    <v:group alt="Error" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:oval
    class="vmlimage" coordsize="21600,21600" fillcolor="red"
    strokecolor="red"
    style="width:100px;height:100px;"></v:oval><v:line
    class="vmlimage" from="25,25" strokecolor="white" strokeweight="2.25pt"
    style="" to="75,75"></v:line><v:line
    class="vmlimage" from="75,25" strokecolor="white" strokeweight="2.25pt"
    style="" to="25,75"></v:line></v:group>
    1
    Errors Detected
    <v:group alt="Warning" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:shape
    class="vmlimage" coordsize="100,100" fillcolor="yellow"
    path=" m50,0 l0,99,99,99 xe" strokecolor="yellow"
    style="width:100px;height:100px;"><v:path></v:path></v:shape><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:35px;"></v:rect><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:5px;"></v:rect></v:group>
    A fast link was detected More information...
    <v:group alt="Warning" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:shape
    class="vmlimage" coordsize="100,100" fillcolor="yellow"
    path=" m50,0 l0,99,99,99 xe" strokecolor="yellow"
    style="width:100px;height:100px;"><v:path></v:path></v:shape><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:35px;"></v:rect><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:5px;"></v:rect></v:group>
    The following GPOs have special alerts
    GPO
    Name
    Alert
    Default Policy
    AD / SYSVOL Version
    Mismatch
    During last user policy refresh on
    20/03/2014 3:00:29 PM
    <v:group alt="Error" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:oval
    class="vmlimage" coordsize="21600,21600" fillcolor="red"
    strokecolor="red"
    style="width:100px;height:100px;"></v:oval><v:line
    class="vmlimage" from="25,25" strokecolor="white" strokeweight="2.25pt"
    style="" to="75,75"></v:line><v:line
    class="vmlimage" from="75,25" strokecolor="white" strokeweight="2.25pt"
    style="" to="25,75"></v:line></v:group>
    1
    Errors Detected
    <v:group alt="Warning" class="vmlimage"
    coordsize="100,100"
    style="width:15px;height:15px;vertical-align:middle;"><v:shape
    class="vmlimage" coordsize="100,100" fillcolor="yellow"
    path=" m50,0 l0,99,99,99 xe" strokecolor="yellow"
    style="width:100px;height:100px;"><v:path></v:path></v:shape><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:35px;"></v:rect><v:rect
    class="vmlimage" coordsize="21600,21600" fillcolor="black"
    strokecolor="black"
    style="width:10px;height:5px;"></v:rect></v:group>
    A fast link was detected More information...
    Please help
    I feel like, something is blocking the user-friendly name to display in that server. I could be wrong.
    I have also noticed that Netlogon service is not running. Try to run, it gives error Error 1721: Not enough resources are available to complete this operation.
    please help.

    Hi,
    Would you please tell us that are all user names displayed as SIDs, or only some of them after you renamed the server?
    Here are some related links below I suggest you refer to:
    Event ID 1110 — Group Policy Preprocessing (Active Directory)
    http://technet.microsoft.com/en-us/library/cc727342(v=WS.10).aspx
    Error Message:
    http://technet.microsoft.com/en-us/library/cc940521.aspx
    "AD / SYSVOL version mismatch" message is displayed unexpectedly in the Group Policy Results report in Windows
    http://support.microsoft.com/kb/2866345
    Best Regards,
    Amy Wang

  • How to rename the existing project in NetWeaver

    Hi All,
    Please let me know the process of how to rename the existing project in NetWeaver.

    Hi,
        If you want to rename Development Component (DC) project, here is the procedure..
    How to rename local Development Component Projects in Netweaver Developer Studio
    Regards,
    Uday.

  • Where are my photos? iPhoto library hides them AND renames the folders

    I recently upgraded to Lion OS and can no longer see my photos and videos in Finder. A search shows that they are all in a dir that is actually an iPhoto library. Bizarrely it has been given the name of the first lot of photos that I imported in to iPhoto from a flash drive - so all of my photos are "packaged" inside a file called "mom's photos"!!!. In Finder it appears as a data item - NOT as a folder - the contents of which can be seen by clicking "Show Package Contents". Inside this "package" is the directory tree that Get Info shows is the path for a photo file. The photos have been arbitrarily put in to directories called "Modified" and Originals within which they have been stored in folders with year names ("2003", "2006", etc) that have no connection to the date the photos were created or their file names.
    Is this considered to be progress by Apple?  How can I work with my files independently of iPhoto or iMovie (raw video being also inside the iPhoto library "package")? How can I reverse the renaming of the folders? Can I rename the iPhoto library to a default name - such as "iPhoto Library" for example!
    Any pointers on how to deal with this new regime for handling photos and video will be welcome
    jilsybean

    It's really very simple.
    If you want to manage files, use a file browser.
    If you want to manage photos, use a Photo manager like iPhoto.
    No version of iPhoto has supported the user accessing the files via the Finder. None at all. In versions 1 to iPhoto 6 it was possible to view the contents of the library, but accessing was not supported. Making changes within the iPhoto Library was not supported. Renaming files and folders corrupted the Library.
    So, with iPhoto 7 (released in the autumn of 2007) the library was moved into a package to protect it from Users making these changes.
    How the files are stored simply doesn't matter. Why? Because everything you need to do can - and should - be done via the iPhoto application. It's a database, after all, and like any db requires that you manipulate the data via the app itself, not a back door.
    iPhoto is your go-to app for anything you need to do with your Photos. You simply never access them via the Finder.
    So, you can edit either with iPhoto - or in any other app: You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Or, you want to access your photos for any reason at all:
    There are many, many ways to access your files in iPhoto:   You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    There's a similar option in Outlook and many, many other apps.  If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto not running:
    For users of 10.6 and later:  You can download a free Services component from MacOSXAutomation  which will give you access to the iPhoto Library from your Services Menu.
    Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and 10.5 Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Show File:  a. On iPhoto 09 and earlier:  Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.    3.b.
    b: On iPhoto 11 and later: Select one of the affected photos in the iPhoto Window and go File -> Reveal in Finder -> Original. A Finder window will pop open with the file already selected.
    All of the above are a: faster and b: safer than rooting around in the old library folders.
    I know it's a change but you'll get used to it. And, of course, if you don't, you can always use another app.
    Regards
    TD

  • Delay in execution of statements within a procedure!

    Dear All,
    My Database is Oracle 11gR2 on Linux.
    I have to schedule delete in 5 tables. For this i will write a procedure with delete queries and schedule the procedure to run daily in night.
    I want to give delay in the execution of delete queries within procedure? How can i add this functionality within a procedure?
    I don't want to lock the tables as other queries may be accessing the same table meanwhile.
    Looking for your help.
    Regards,
    Imran

    Other queries accessing the table meanwhile is a perfectly normal reason to lock the tables, as writers don't block readers.
    Implementing 'delays' is definitely an amateurish hack to result into more problems.
    Locking and transactions are one of the core functions of any RDBMS, and it is better to understand them, than to implement hack on hack on hack to turn a Ferrari like Oracle in a broken bike with a flat tire.
    After several years of asking doc questions you should know better.
    BTW can you explain why you end all of your questions with an unnecessary exclamation mark?
    If you can't explain this, can you stop doing so?
    There is no reason to yell here.
    Thank you
    Sybrand Bakker
    Senior Oracle DBA

  • Shrink file (log) from within a procedure

    I'd like to incorporate the DBCC shrinkfile command to my maintenance procedure. This procedure gets called after I've finished my weekly importing process. I only need to shrink the log files as almost all the modifications are either a record update or
    an insert (there are very few deletions done). I need to do this across several databases and for software maintainability would prefer to have only the one procedure.
    My issue is that there does not seem to be a way to point to the various databases from within a procedure to preform this operation. Also the maintenance plan modules have a shrink database operation but I don't see a shrink file operation so that doesn't
    appear to be an option.
    Have I overlooked something or is it not possible to preform a shrink file operation for the transaction log files for multiple databases?
    Developer Frog Haven Enterprises

    Thank you for your response. While I did not use your answer verbatim it did lead me to my solution as I only need to preform the shrink operation on 4 out of the 7 databases in my SQL instance.
    FYI my final solution was...
    -- shrink the log files
    DECLARE @sql
    nvarchar(500);
    SET @sql
    =
    'USE [vp]; DBCC SHRINKFILE (2, 100);';
    EXEC
    (@sql);
    SET @sql
    =
    'USE [vp_arrow]; DBCC SHRINKFILE (2, 100);';
    EXEC
    (@sql)
    Developer Frog Haven Enterprises

  • Rename the Catalog Link

    Hi,
    I want to rename the Catalog link on the header bar but i can't seem to find any documents on steps to do it.
    Have come accross docs on renaming the other links 'Home', 'Dashboard' etc in http://obiee10grevisited.blogspot.co.uk/2012/02/obiee-11g-removing-dashboard-links.html
    Anyone have steps on how to rename the Catalog link?
    Regards

    Hi,
    Yes i had initially used a custom link to navigate to a specific folder within the Catalog which worked well.
    I then wanted to hide the 'Catalog' link from the header which I did by revoking the 'Access Catalog UI' privilege under Administration->Manage Privileges but when i did that my custom link stopped working and gave me an access denied message.
    I figured the only way to do this is to rename the default 'Catalog' link and grant the access to specific users.
    Regards

  • RENAMING THE SAPSID and DBSID

    Hi experts,
    I am a fresh BASIS professional and this is my recent issue. Please be patient in order to read this long post and please post your valuable feedbacks.
    SCENARIO:
    I want to rename both SAPSID and DBSID.
    SYSTEM PARTICULARS:
    OS: Windows 2003 Server.
    DB: Oracle 10.2.0.1
    SAP: ECC 6.0 SR2 ABAP+JAVA
    SAPSID and DBSID (old): SEZ
    SAPSID and DBSID (new): SDF
    THE PROCESS:
    After an extensive research I have come up with the process to do that. Please take a look below:
    1. RENAMING THE DBSID
    u2022Mount the database after a clean shutdown
    u2022Invoke the DBNEWID utility (nid) specifying the new DBNAME from the command line using a user with SYSDBA privilege:
    nid TARGET=sys/password@SEZ DBNAME=SDF
    u2022Use Y in the change database ID prompt as shown below:
    Change database ID and database name SEZ to SDF? (Y/[N]) => Y
    u2022Shutdown the database.
    u2022Modify the DB_NAME parameter in the initialization parameter file. The startup will result in an error but proceed anyway.
    STARTUP MOUNT
    ALTER SYSTEM SET DB_NAME=SDF SCOPE=SPFILE;
    SHUTDOWN IMMEDIATE
    u2022Create a new password file:
    orapwd file= D:\oracle\SEZ\102\database\pwdSDF.ora password=password entries=10
    u2022Rename the SPFILE to match the new DBNAME.
    u2022Recreate the service so the correct name and parameter file are used:
    oradim -delete -sid SEZ
    oradim -new -sid SEZ -intpwd password -startmode a -pfile D:\oracle\SEZ\102\database\spfileSDF.ora
    u2022Alter the listener.ora and tnsnames.ora setting to match the new database name and restart the listener:
    lsnrctl reload
    u2022Open the database with RESETLOGS:
    STARTUP MOUNT
    ALTER DATABASE OPEN RESETLOGS;
    u2022Backup the database.
    2. Then Uninstall the SAP system
    3. From SAP INSTALLATION MASTER, use SYSTEM COPY option providing the SAPSID as SDF.
    THE QUESTION:
    Please check the above method and tell me if this will work or not?
    Shall I proceed with the procedure?

    Ok, as i said you should do the whole procedure with sapinst, first you export the original system. Then you re-install it with the new SID. During the reinstall (it is like a new install) you also install the Oracle software to the new ORALCE_HOME. This means of course that you also have to deinstall the existing Oracle software (and the original SAP system as well). This is the only procedure that works if a java stack is involved. Be sure, you have sufficent disk space for the export dump and the new system.
    And by the way 11.2.0.1 is indeed supported, it is the 11.1.x.x releases that are not supported...
    Cheers Michael

Maybe you are looking for

  • How To Connect My PB To An iBook...

    My cousin just bought a new ibook - I'll be going to over to help him set it up and it would be nice to transfer some of the family pics / files I have on my powerbook over to his machine to load up into iphoto etc. I'd like to find a way of connecti

  • Airport Wireless Card not connecting to ABS

    I updated my ABS firmware a few weeks back when many people did and had issues with the update, no wireless connection. I rolled back to the previous ABS firmware version with no luck. I went thru several hard resets and go nothing. So I just went ah

  • Querying CHAR columns with character length semantics unreliable

    Hi again, It appears that there is a bug in the JDBC drivers whereby it is highly unlikely that the values of CHAR columns that use character length semantics can be accurately queried using ResultSet.getString(). Instead, the drivers return the valu

  • Paid PDF development project

    Hi, I'm looking for a developer who is experienced with PDF reading and text extraction to help with a project. Please contact me at [email protected] Thanks, - Erik

  • Page export/import problem

    Hi, I am getting a problem when i try to export and import a portal page from one schema to other. I have two schemas installed in the same database. I am able to export and import a user defined oracle portal page from schema1 to schema2. The proble