Created new Oracle db  Now my existing TNS connections dropped?

Hi, I created a new database using the Oracle8i Database Configuration Assistant. I had previously configured my Net8 to connect to my starter database. After I created my new database my existing connections to my starter database stopped. Can anyone help?
Andrew
<!--- TNSNAMES.ORA --->
# C:\ORACLE\ORA81\NETWORK\ADMIN\TNSNAMES.ORA Configuration File:C:\Oracle\Ora81\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle Net8 Assistant
ORACLE2 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = PRODUCTIONS)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = oracle2.productions2)
(INSTANCE_NAME = startdb2)
)

fixed it... moved the tns entry higher in the file.

Similar Messages

  • Create new user same as a existing roles and Privileges

    Hi Team,
    I am a junior DBA. New user Joined in Application team. So, Client requested me.....
    Crerate new user with same privileges as like as existing user.
    As of now i am creating user like "create user username identified by "password". Then grant privileges to that user. earliar I never comapare or copied users.
    Please suggest any one how to create new user as like as existing user roles and privileges.
    Thanks,
    Venkat

    For basic cloning:
    select dbms_metadata.get_ddl('USER', '...') FROM DUAL;
    SELECT DBMS_METADATA.GET_GRANTED_DDL('ROLE_GRANT','...') FROM DUAL;
    SELECT DBMS_METADATA.GET_GRANTED_DDL('SYSTEM_GRANT','...') FROM DUAL;
    SELECT DBMS_METADATA.GET_GRANTED_DDL('OBJECT_GRANT','...') FROM DUAL;
    SELECT DBMS_METADATA.GET_granted_DDL(‘TABLESPACE_QUOTA’, ‘...’) FROM dual;
    Then just replace the username with the new one you want to create.

  • Creating new graphics object from a existing one and sending it for print

    Hello,
    i have a graphics object which is big in size, I am creating a new graphics object from the existing one as given below
    //map is a graphic object
    Graphic g1 = (Graphic)map.create(x,y,width,height);
    Graphic g2 = (Graphic)map.create(x,y,width1,height1);
    Graphic g3 = (Graphic)map.create(x,y,width2,height2);
    arrayList.add(g1);
    arrayList.add(g2);
    arrayList.add(g3);
    Now I want to send the graphic object g1,g2,g3 for print in the method
    public int print (Graphics g, PageFormat pf, int idx) throws PrinterException {
    // Printable's method implementation
    if (curPageFormat != pf) {
    curPageFormat = pf;
    pages = repaginate (pf);
    if (idx >= 3)) {
    return Printable.NO_SUCH_PAGE;
    g = (Graphics) arrayList.get(idx);
    return Printable.PAGE_EXISTS;
    This is not working... what is wrong. can anybody suggest..
    I tried standardprint.java to print a object inside a scrollpane, it is not printing the entire diagram. so I am thinking of something like this.... Please let me know what to do....
    Thanks
    Serj

    The easy way to do this is create a copy using Windows Explorer.
    Open the project and go to File > Rename.
    Then you have your 2013 ready made project.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Creating new record instead of update existing one in Bank application

    HI Mate
    Here is my issue and I want from ur help
    Bank information iview---when i am doing "EDIT" option in that it will edit the bank details,But when i check the records in SAP HR system.it is creating extra record instead of replace that record with payroll date.
    Could anyone please help me to fine the solution ASAP.as it is very import for me
    Thanks
    Keshari

    Note 965324
    Check your time contraints
    As per the timeconstraint validation if you edit the record it is
    changing this validity for the future and the gap is included. That is
    the system standard behavior as per the configuration. To achieve the
    desired behavior you need to create a new record or change
    timeconstraint to 1 (but in this case only one record may exist at a
    given period).
    I kindly ask you to refer to note 818957 which explains the Use Cases x
    Timeconstraint configuration.
    ie
    to achieve the functionality you have to create new future record.
    Reason is you are using TC:3, in which gaps are allowed, but you dont
    want gap in between.
    When an employee wanted to change his/her bank details
    via portal effective future date, system is
    giving error as "Change in the payroll past not possible".  This error
    appears for the scenario as mention below :
    1.  Payroll is processed and Exited for the period 16th Dec 2010 to
    31st Dec 2010   on  28th Dec 2010  (3 days in advance).
    2.  Employee wanted to change bank details on 29th Dec 2010 effective
    1st Jan 2011 via ESS portal.
    3.  An error Change in the payroll past not possible" is shown while
    saving the data.
    In your case either you have to use TC:1, since you don't want gap in
    between, or you have use new button to create future record.

  • Create new oracle database with JAVA

    Hi!
    I would appreciated it if you could help me to solve a problem that i have.
    I am trying to create a new oracle database by a JAVA 1.4.2 application. I am using the scripts that Oracle 10.g supplies during the creation of a new database from the server (Generate Database Creation Scripts) with the appropriate changes, generated by a java application. Unfortunately, i am unable to connect with the database and the listener. Is there any other way to create a new database by java and how can i solve my current problem with the oracle scripts?
    Thank you.

    A) To create a new schema, you need to be connected as a user that has create schema privilege, or as tyhe user who is to own the schema (remembering that the user has appropriate create privs, as seen in the GRANT command in the SQL Reference manual). Not an issue at all, I think, if you coordinate this with your DBA. Discussed very well in the Administrator's manual.
    B) Alternately, you could create a complete copy of the schema, including all desired objects (tables, views, etc.) in a separate database and simply export the user and schema. Then simply invoke the OS-based import command (imp) to load that entire thing into the target database.
    C) To create a new database, there are 3 simple steps ...
    1) create the appropriate initialization parameter file
    the init{sid}.ora file should be placed in the $ORACLE_HOME/dbs or %ORACLE_HOME%\database directory. (I recommend you do not attempt to create the spfile.) Of critical interest will be setting the block size information, the control file parameters, and using the appropriate memory management parameters, based on the version of the software you will be using to create the database instance.
    2) start an empty instance, pointing to the parameter file
    This will be an OS specific call, and will require that you have the correct OS environment set up as well as access to the ORACLE_HOME which will provide the software that you will invoke. In *nix you will need to call the sqlplus command with sysdba provs and in Windows you will need to call oradim to initialize this as a service.
    3) run the SQL create database command
    You might want to use the dbca to create a template of the create database command, or look in the SQL Reference manual for the variations on the command. Of critical interest will be initializing the redo logs as well as the system, sysaux (if needed), temp and undo tablespaces after which you can set up the regular tablespaces, users and schemas. I highly recommend that you have redundant copies of the control files on separate drives.
    You may want to review the online Concepts manual and the Adminstration Guide for some of the specifics to your needs, but I think I've covered the basics.
    Remember that ideally you will only have one database instantiated on any given server as the memory and CPU overhead of each instance is significant.
    Good luck.

  • Create new depreciation class for the existing asset

    Dear Experts,
    Please explain step by step:
    1. How to create a new depreciation class for the existing asset
    2. How to make a asset transfer to the new asset in the new asset class?
    Thank you in advance

    Hi,
    The pre-requsit of creating a new assets clause :-
    1. Co. code assigned to Chart of Dep.
    2. Dep areas have been defined
    3. GL account no. is not more than 8 digit.
    The transfer of an assets within the same co code can be done thru T.code ABUMN.
    Award if helpful
    Sunil

  • How to create New IDOC with refrence to existing IDOC.

    Hello All,
    In the MATMAS  Material master data IDOC the special procurement type should consider the special procurement flag = VI also. At present the  functional module IDOC_INPUT_MATMAS01 only take the special procurement flag = KA into account.
    IDOC is in 05 status.
    I want to Create a test IDOC copying the existing IDOC and change the SOBSL to VI to check if that is successful.
    Please suggest,.
    Thanks in advance.
    Forum Shah

    Hello,
    I have made the changes with the partner profile.. WE20... and got the processing IDOC staus "03" ie "Translation ok".
    how do i create a new IDOC to check if its working well?
    Is there any need to add anything in the function module?

  • I create new id  and now I can't sing in

    Hi creat new Apple ID and redeem 10 $ and then I sing out  but now i cant sign in ?

    Hey rose51
    Try Turn Of And On Your iPad, If That Doesnt Work Try This Article
    http://support.apple.com/kb/ht5624
    If That Still Doesnt Work Please Contact iTunes Department
    https://www.apple.com/au/support/itunes/contact/
    Thanks,
    Nathan

  • I purchased a new router and now I can not connect to my time capsule. What should I do?

    In the past, I have just used my time capsule to back up my macbook pro. It connected wirelessly and everything worked great. I recently purchased a new router and now I cannot connect to the time capsule. Please help!

    Is that other router the "main" one?  If so, you'll have to configure the Time Capsule to "join" the network created by that router.  The details of how to do that and whether it's possible may depend on the brand and model of that router, but I have no details on that.

  • I downloaded the new iTunes and now it won't connect to the Store

    I downloaded the new iTunes and now it wont' connect to the store.  I tried to do a repair and now I've just re-downloaded iTunes. Still no luck

    Hello evelyn35,
    The following article can help restore iTunes' connection to the iTunes Store.
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Cheers,
    Allen

  • I downloaded the new iOS6 and now I can not connect with the iTune or App stores. My wi-fi works.

    I downloaded the new iOS6 update to my 4s and now I can not connect with the iTune or App store. How do I fix it? My Wi-Fi works fine.

    (A) Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.
    (B) Reset all settings
    Settings>General>Reset>Reset all settings
    Note: Data will not be affected but settings will be reset.

  • New user created in oracle 11g (release 2) is not connecting (ORA-01017)

    Hi All,
    Kindly help me out regarding this.
    I have created a new user using "ORACLE Enterprise Manager 11g" and used the same credentials in SQL developer for a new connection and it throw "ORA-01017: invalid username/password; logon denied" message.
    Kindly note that have followed the following steps in creating user:
    On the Users page, click Create.
    In the Name field, enter NICK.
    In the Profile list, accept the value DEFAULT.
    This setting assigns the default password policy to user Nick.
    In the Enter Password and Confirm Password fields, enter a password that is secure.
    Create a password that is secure. See Oracle Database Security Guide for more information.
    Do not select Expire password now. If the account status is set to expired, then the user or the database administrator must change the password before the user can log in to the database.
    (Optional) Next to the Default Tablespace field, click the flashlight icon, select the USERS tablespace, and then click Select.
    All schema objects that Nick creates will then be created in the USERS tablespace unless he specifies otherwise. If you leave the Default Tablespace field blank, Nick is assigned the default tablespace for the database, which is USERS in a newly installed database. For more information about the USERS tablespace, see "About Tablespaces".
    (Optional) Next to the Temporary Tablespace field, click the flashlight icon, select the TEMP tablespace, and then click Select.
    For the Status option, accept the default selection of Unlocked.
    You can later lock the user account to prevent users from logging in with it. To temporarily deny access to a user account, locking the user account is preferable to deleting it, because deleting it also deletes all schema objects owned by the user.
    Grant roles, system privileges, and object privileges to the user, as described in "Example: Granting Privileges and Roles to a User Account".
    Note: Do not click OK in Step 13 of "Example: Granting Privileges and Roles to a User Account". Instead, skip that step and continue with Step 12 in this procedure.
    Assign a 10 MB quota on the USERS tablespace, as described in "Example: Assigning a Tablespace Quota to a User Account".
    If you did not click OK while assigning the tablespace quota (previous step), click OK now to create the user.Kindly note that I have log in as SYSTEM user and created this new user.
    Could any one help me regarding this ?

    After connecting with sqlplus, as user SYSTEM and when tried the below, I could see that the new user created by me does not exist..
    select '--' || username || '--'
    from dba_users
    order by username;
    But when tried with GUI "ORACLE Enterprise Manager 11g" I can very well see the new user created by me..
    How is this possible mate??
    Is the user not properly created through GUI (than from where it is showing the new user)
    Some more information i want to share;
    i have used schema "HR"
    And have used table space "USERS"
    And tep tablespace "TEMP"
    Edited by: 828569 on Jan 16, 2011 9:01 PM
    Edited by: 828569 on Jan 16, 2011 9:03 PM

  • Creating new Domain by Copying the existing domain

    Hi,
    Is there any way to create a new domain by copying the already existing domain directory and pasting it to another directory in same machine or different machine.
    Can anyone suggest me the configuration file that needs to be updated for new domain name.
    Thanks
    Harish
    Edited by: user10833531 on Dec 2, 2009 7:52 AM

    When you mention "Before posting on forum I have tried this option. I tried again but no luck." do you mean you tried pack/unpack or template approach and this did not work. Or did you just copied domain folder and renamed and start the new domain and you got errors. Copying domain may not work 100% (not in the long run). But pack/unpack or template approach should work pretty much without any errors.
    As mentioned, I would recommend template approach or pack/unpack. You can provide the internal details and risk factors involved with hard disk copy of domain folder and renaming approach to the client. If domain copy approach works, then bea/oracle would not have come up with approaches like pack/unpack or template approach at all in the very first place. Copying domain folder and renaming may still work, unless you do all regression testing that includes cluster scenario also and all usecases.
    I would still recommend for pack/unpack or template approach to copy any existing domains.
    Just incase if your domain is like Portal Domain and if you deploy portal applications on this domain, then copying domain will just not work. Every domain is very tightly coupled with ldap files and db tables for any Security Visitor Entitlements and Delegated Admin roles. If its pure weblogic server application, these things will not come into picture. But for Portal, we do have something called Propagation Tool to migrate portal app from one domain to other domain. But still the domain cannot be copied and renamed.
    HTH
    Ravi Jegga

  • Creating New Oracle Database on Windows 2000 server

    These are the steps I am going to take. Are these correct?
    1.) Set the Environment Variable. Do you need to use Oradim or is "SET ORACLE_SID=EGWASDEV" OK?
    2.) Create a INIT.ORA file placed in a separate directory from EGOVDB.
    3.) Create DATABASE Script. (See Attached)
    4.) Create Tablespace Script. (See Attached)
    5.) svrmgr1
    6.) Connect Internal
    7.) startup nomount pfile="E:\oracle\admin\egwasdev\pfile\initegwasdb.ora"
    8.) Run CREATE DATABASE Script
    9.) Connect Internal
    10.) Run Tablespace script
    11.) Run E:\oracle\ora81\Rdbms\admin\catalog.sql
    12.) Run E:\oracle\ora81\Rdbms\admin\catproc.sql
    13.) Change Password for SYS
    14.) Change Password for System.
    15.) Modify Listener
    16.) Modify Tnsnames
    17.) Setup Dbstart (to automate)

    When I connect internal I get a TNS:protocol adapter error. If I reference the SID of the existing database then I will be logged into that database. I thought I shouldn't be connected to any database in order to.....
    startup nomount pfile="E:\oracle\admin\egwasdev\pfile\initegwasdb.ora"
    How should I connect and what do I do to avoid the TNS errror?

  • Create new JButton by pressing on existing JButton

    Hi all,
    I am trying to create a code which allows the users to create JButtons to a an existing frame.
    So what I want is that users can create buttons wihch opens a URL. The user need to be able to click on an Existing JButton called "Add Favorite", insert the name of the favorite and URL and the button is added with the functionality to open the URL in Internet Explorer.
    I already have a beginning but have no clue how to add that functionaly to create JButton by pressing on button "Add Favorites" with the needed functionality
    The functionality needes to be added to Button4 ("add Favorite" ). As you can see, Button4 ("add Favorite") opens two inputShowDialog which allows the users to insert the name of the favorite and URL.
    Thanks in advance.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.JButton.*;
    import java.awt.Dimension.*;
    import java.lang.RuntimeException.*;
    import javax.swing.JOptionPane;
    public class Favorites extends JFrame implements ActionListener{
    //private JPanel panel1 = new Jpanel ("Add Favorite");
    private JButton button1 = new JButton ("Google");
    private JButton button2 = new JButton ("Tweakers");
    private JButton button3 = new JButton ("Hardware.info");
    private JButton button4 = new JButton ("Add Favorite");
    public Favorites (){createGUI();}public static void main (String[] args) {
    Favorites frame = new Favorites ();
    frame.setVisible(true);
    frame.setSize(150,300);
    frame.setLocation(200,0);
    frame.setLocation(1750,300);
    private void createGUI () {
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container window = getContentPane();
    window.setLayout (new FlowLayout ());
    button1 = new JButton ("Google");
    add(button1);button1.addActionListener(this);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    window.setLayout (new FlowLayout ());
    button2 = new JButton ("Tweakers");
    add(button2);button2.addActionListener(this);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    window.setLayout (new FlowLayout ());
    button3 = new JButton ("Hardware.info");
    add(button3);button3.addActionListener(this);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    window.setLayout (new FlowLayout ());
    button4 = new JButton ("Add Favorite");
    add(button4);button4.addActionListener(this);
    public void actionPerformed(java.awt.event.ActionEvent event) {
    if (event.getSource() == button1) { 
    try
    {Runtime r = Runtime.getRuntime();
             r.exec("cmd /c start iexplore.exe www.google.nl");
    catch(Exception e) {}
    if (event.getSource() == button2) { 
    try
    {Runtime r = Runtime.getRuntime();
             r.exec("cmd /c start iexplore.exe www.tweakers.net");
    catch(Exception e) {}
    if (event.getSource() == button3) { 
    try
    {Runtime r = Runtime.getRuntime();
             r.exec("cmd /c start iexplore.exe www.hardware.info");
    catch(Exception e) {}
    if (event.getSource() == button4) { 
    try
    int Favorite;
    String FavoriteString;
    FavoriteString = JOptionPane.showInputDialog ("Give name Favorite");
    int Link;
    String LinkString;
    LinkString = JOptionPane.showInputDialog ("Insert link");
    catch(Exception e) {}
    }

    Welcome to the forum.
    please enclose you code examples in -tags for better readability.
    1009324 wrote:
    The functionality needes to be added to Button4 ("add Favorite" ).So why do you name it <tt>Button4</tt> and not <tt>addFavorite</tt>?
    As you can see, Button4 ("add Favorite") opens two inputShowDialog which allows the users to insert the name of the favorite and URL.
    Do you see that the code for createing an URL-button looks exactly same accept the actual URL?
    1. Change the code so that the URL is assigned to a variable first. (You IDE meight have a refactoring "exctact local variable".
    2. Move this variable assignment before the complete button creation code.
    3. Select all the lines excluding the new variable assignment and the line that adds the button to the Container.
    4. use the "extract method" refactoring of your IDE.
    now you have a method you can call when ever you need to create a new URL-button.
    bye
    TPD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Apple mail won't let me change font size in composing since upgrade to Lion

    I go to "select" and it shows me the other sizes. I select 14, and it does not change it to 14, it stays at Helvetica 12. This only started with upgrade to Lion. I am using 10.7.1. Any answers? Thanks, Joe

  • Video calls from iPhone to HTC

    Does anyone know if it's currently possible to make a video call from an iPhone to an HTC Desire? Assuming Facetime won't work, maybe something like Skype would do it? THANKS

  • Urgent requirement..Integration scenario

    Hi folks, We need to create configuration objects in directory using integration scenario. However one of our application components would be a business service and not a system. When we try to assign services in the second step of configurator it on

  • Basic graphical question (actionscript/flashbuilder)

    I'm a totally newbie trying to create a library of graphical components that I can reuse in applications. I've created two projects in my workspace, one for the widgets and one for the application. When I draw the components onto the design screen, t

  • Speaker has stopped working HP Pavilion g6 Notebook PC

    I bought this laptop a few months ago and one of the speaker has stopped working. The laptop also heats up alot and makes noise. My laptop is still on its warrenty but I dont know how to contact HP for repair. I have tried reporting on the HP faceboo