Oracle database name

hi everyone,
can anyone tell me how to find out database name in oracle? i tried "select name from v$database;" but it says "table or view does not exist" .... i have logged on as an ordinary user only...not as dba...
thanks in advance
regds,
Beulah

hi,
thx for ur replies... the contents of my client machine's tnsnames.ora is given below:
# tnsnames.ora Network Configuration File: F:\Oracle\product\10.1.0\Client_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORACLE =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.250)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = oracle)
and my problem is i am using a crystal report viewer in c#.net which is asking for a logon information to oracle server.
and the server name i provided as 192.168.2.250 and database name i gave as oracle and username and password i gave. but login fails everytime. pls tell me what the error is.
regds,
Beulah

Similar Messages

  • Ora-02084 : database name is missing a component

    hai all,
    i am a newbee to oracle. i am struggling to create a database, any help would be highly appreciated. i have installed Oracle 9i on a RH8.0 system. but while creating database through DBCA, i am getting the error message, "ORA -02084:Oracle database name is missing a component". i ahve gone through the documentation and found that probelm is with ORACLE_SID. i have set all the environment variables(including ORACLE_SID, DB_NAME AND DB_DOMAIN) according to the documentaion and created swap files, temporary space etc.i have set all the environment variables in .bash_profile in ORACLE_HOME.
    i have stopped DBCA and gone through the files. i could see that the database is actually created, with initXXX.ora.441414312 file. but once when i started the database with nomount and checked, i could find the control files missing.
    thanks in advance,
    ramesh.

    Probably you are missing value for db_name (or missing parameter db_name) in parameter file.
    Note you can still create db manualy (without DBCA).

  • Using php to connect to Oracle Database 11g Release 2 Enterprise Edition EE

    Greetings everyone!
    Please i dont know how to connect to Oracle Database 11g Release 2 Enterprise Edition with php even though i connected with php successfully with Oracle Database 11g Express Edition with the php code below. can someone help please...Note im referring to oracle EE not XE.
    define('ORA_CON_UN', 'hr'); // User name
    define('ORA_CON_PW', 'Adlibs14$'); // Password
    define('ORA_CON_DB', '//localhost/EE'); // Connection identifier
    // use constants defined in anyco_cn.inc
    $conn = oci_pconnect(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);
    if (!$conn) {
    db_error(null, __FILE__, __LINE__);
    Edited by: user11273096 on Jul 15, 2011 12:03 AM

    Find the hostname and service name of the database and use those values in the ORA_CON_DB constant.
    Use 'lsnrctl status' on the database host to find the service name.
    If you use a "tns" alias, you may need to create a tnsnames.ora file where PHP can access it.
    Set the environment variable TNS_ADMIN (on Linux) to the directory containing the file.
    See the section "Oracle Database Name Connection Identifiers" p 102 of the free book
    http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html

  • Can we rename the database name in oracle 10g

    Hi,
    Can we rename the database name in oracle 10g.
    Please help

    Yes as already said, using DBNEWID Utility can renamed the database name.
    You can also take a look at the Oracle Metalink Note:429674.1 (Which was written by me) - Subject: How We Used the Oracle DBNEWID Utility to Change the Database Name
    Regards,
    Sabdar Syed.

  • Database Service Name or Global Database Name with Oracle 10G, when Oracle

    I have an old installation of Oracle 9i (SID=ORCL) and now have installed Oracle 10G (SID=ORC2). I can get connection to Oracle 10G if i define it as an Oracle 8 compatible identification (ie I access to a SID, and don´t provide a Service Name.
    Now I want to install Oracle HTML DB, and succeeded to install the SQL-script that came with the download, but when I install Apache and HTML DB from the Oracle Companion CD I am asked to give the Database Service Name (in the Help it is explained as the Global Database Name).
    When i give the Net Service Name I get error messages (incomprehensible).
    When I look in Net Manager, the Net Service Name does not have a Service Name, but only points to a SID (ie ORC2).
    Where can I find the Database Service Name (or Global Database Name), OR define it if it is not defined??
    Thanks for your help,

    create a net service for oracle10g and provide the name of this service during HTML DB installation it is required for installation.

  • Want to modify the Global Database Name in Oracle 10g R2

    Hi All,
    I have a global database name like GS77.UK.ORA.COM , I want it to be just GS77.What are the possible workarounds for modifying this.
    Thanks & Regards,
    Gaurav S.

    If your problem is really just the global name, yes.
    You can check with
    Select * from global_name;
    Check the documentation first to ensure you checked all implications first
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_1004.htm#i2079942
    Regards,
    PP

  • Login page user name and password for Oracle Database

    Hi,
    I created a login.jsp page with username,password and a submit button. How can I validate this username and password from my Oracle database username and password?
    I am using NetBeans5.5 with Tomcat5.5.17. Right now I have hardcoded username and password in my persistence.xml.
    Anyhelp?

    Thnx BalusC for ur reply. Let me explain my issue.
    I have created a login page. and user is able to enter user name and passowrd on this page. User is supposed to press a 'submit' button when user enters username and password to connect to database. What should I write in 'submit' button's action to let user allow to proceed if username and password are correct i.e. username and password of my oracle database. (usename=scott and passowrd=tiger).
    plz help.

  • How to set database name default for oracle discoverer 10g

    Hi
    Do you have idea of setting the database name default for oracle discoverer 10g

    I mean to say while login to discoverer 10g, it will ask for following options. In this Database should select the database name by default instead of any value
              User Name
              Password
              Database
              End User Layer

  • How can i define database name in oracle ADI

    Hai Friends,
    I am facing a problem when i am going to define database name in oracle ADI there is a error u can enter minimum 6 char database name but my database name is PROD it is only 4 char long. how can i define can i will change the database name. Please suggest me.
    If u have any query regarding oracle apps plse discuss with me.
    Many thanks
    Ghanshyam khetan

    Database is used internally by ADI and does not have any relationship to the name of your database.
    Using ADI I am able to create a database with the following:
    Name - My Wacky Database
    GWYUID and FNDNAM as usual
    Connect String - VIS
    I'm able to signon and work successfully with that definition. The connect string is more important in this scenario as that tells the networking layer which database to actually talk to. As you can see here mine is only three characters.

  • Urgently! remove oracle database domain name

    I have changed my database's global_name.
    here is the script:
    alter database rename global_name to testdb.com
    then I want to change the database name back to testdb, how to do that?

    You need to recreate control file to make the change effective.
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref338
    For example, to create a database with a global database name of test.us.acme.com, edit the parameters of the new parameter file as follows:
    DB_NAME = test
    DB_DOMAIN = us.acme.com
    You can rename the GLOBAL_NAME of your database using the ALTER DATABASE RENAME GLOBAL_NAME statement. However, you must also shut down and restart the database after first changing the DB_NAME and DB_DOMAIN initialization parameters and re-creating the control file.

  • What is maximum  length of oracle database objects name

    Hi all,
    Can anyone tell me what is maximum length of oracle database objects name .
    I guess it is 30 ,correct me if i am wrong thank you.
    regards,
    P Prakash

    Some objects (like synonyms or java classes) can have longer names than 30 chars:
    SQL> create or replace synonym empempempempempempempempempempempempemp for emp
    Synonym created.though internally oracle will generate short names for such objects:
    SQL> select synonym_name from user_synonyms where synonym_name like '%EMPEMPEM%'
    SYNONYM_NAME                 
    /969ea190_EMPEMPEMPEMPEMPEMPEM
    1 row selected.and not always will the long name be actually usable:
    SQL> select * from empempempempempempempempempempempempemp
    Error at line 1
    ORA-00972: identifier is too long

  • Can Oracle 10g XE Database Name be Changed?

    Hi all,
    Oracle 10g Express Edition comes with a Database named XE.
    I would like to change the database named to something like ORA.
    Can this be done in Oracle 10g Express Editorion?
    If have you have done this, please let me know how to do it?
    - How to change Database Name from XE to ORA
    - set the listener configuration to listen to ORA.
    With my basic twidlings, I have come to a conclusion that Oracle 10g XE is does not support it as a feature.
    Thanks,
    Senthil

    In order to get the smaller footprint, XE has a few administrative limitations.
    Keep the name XE, or be prepared to have things in the admin tools and support environment break.

  • Global Database Name & Oracle System Identifier

    How do I set the Global Database Name & Oracle System Identifier for the database?

    I changed the character set to ZHS16GBK,
    I create a database with character set ZHS16GBK,but manage web page failed
    and it works,
    but what should i do to enable all feature of database
    for example
    I create the hr user with
    @D:\oraclexe\app\oracle\product\10.2.0\server\demo\schema\human_resources\hr_main.sql
    but the database show following message when connected
    访问 PRODUCT_USER_PROFILE 时出错
    警告: 未加载产品用户概要文件信息!
    您需要将 PUPBLD.SQL 作为 SYSTEM 运行
    but I cannot find the PUPBLD.SQL file under
    F:\oraclexe\app\oracle\product\10.2.0\server\RDBMS\ADMIN\

  • Variable database name in SQL Server query using Oracle database link

    Hi All,
    I have an ApEx 4.1 app running on 11g x64 (11.2.0.1) on Windows Server 2008 x64, and I have some data integration points with a SQL Server (2005 and 2008) that I need to establish. I have configured the database link with dg4odbc and it works beautifully... I can execute queries against the SQL Server database without any problems using the database link.
    However, there is a scenario where the SQL Server database name is dynamic, and I need to generate it on the fly in a PL/SQL block, and then use that in a dynamic SQL query (all of this in ApEx). This is where I run into problems... when I am querying the default database based on the ODBC connection and I don't have to specify the database name, there is no issue. But when I need to access one of several other non-default databases, I keep receiving the "invalid table" error.
    This runs fine:* (note that "fv" is the name of my database link)
    v_query1 := 'select "ReleaseDate" from dbo.Schedules@fv where dbo.Schedules."SchedID" = :schedule';
    EXECUTE IMMEDIATE v_query1 into rel_date using schedule;
    I then take that rel_date variable, convert to a varchar2 (rel_date_char), and then use it as the database name in the next query...
    This returns an error_ (Error ORA-00903: invalid table name)
    v_query2 := 'select "PARTNO" from :rel_date_char.dbo.ProdDetails@fv where "SchedID" = :schedule and "UnitID" = :unit
    and "MasterKey" = :master and "ParentKey" = :parent';
    EXECUTE IMMEDIATE v_query2 into part_number using schedule, unit, master, parent;
    I have also tried using all of the following to no avail:
    'select "PARTNO" from ' || :rel_date_char || '.dbo.ProdDetails@fv where "SchedID"...
    'select "PARTNO" from ' || rel_date_char || '.dbo.ProdDetails@fv where "SchedID"...
    'select "PARTNO" from ' || @rel_date_char || '.dbo.ProdDetails@fv where "SchedID"...
    'select "PARTNO" from @rel_date_char.dbo.ProdDetails@fv where "SchedID"...
    Is there a way to do this in PL/SQL?
    Thanks for any help!
    -Ian C.
    Edited by: 946532 on Jul 15, 2012 7:45 PM

    Just did a test using passthrough:
    SQL> set serveroutput on
    SQL> declare
    2 val varchar2(100);
    3 c integer;
    4 nr integer;
    5 begin
    6 c:= dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
    7 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 'select count(*) from EMP');
    8 LOOP
    9 nr:= DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c);
    10 exit when nr=0;
    11 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c,1,val);
    12 dbms_output.put_line(val);
    13 end loop;
    14 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c);
    15 end;
    16 /
    24576
    PL/SQL procedure successfully completed.
    SQL> declare
    2 val varchar2(100);
    3 c integer;
    4 nr integer;
    5 begin
    6 c:= dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
    7 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 'select count(*) from dbo.EMP');
    8 LOOP
    9 nr:= DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c);
    10 exit when nr=0;
    11 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c,1,val);
    12 dbms_output.put_line(val);
    13 end loop;
    14 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c);
    15 end;
    16 /
    24576
    PL/SQL procedure successfully completed.
    So all 3 ways work for me.
    Edited by: kgronau on Jul 23, 2012 10:08 AM
    Now using variables to perform the select:
    SQL> declare
    2 val varchar2(100);
    3 c integer;
    4 nr integer;
    5 tabname varchar2(20) :='EMP';
    6 ownr varchar2(20) :='dbo';
    7 dbname varchar2(20) :='gateway';
    8 begin
    9 c:= dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
    10 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 'SELECT count(*) FROM '||dbname||'.'|| ownr || '.'||tabname||'');
    11 LOOP
    12 nr:= DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c);
    13 exit when nr=0;
    14 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c,1,val);
    15 dbms_output.put_line(val);
    16 end loop;
    17 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3(c);
    18 end;
    19 /
    24576
    PL/SQL procedure successfully completed.
    => instead of executing the statement using "execute Immediate" we have to use PASTHROUGH package to pass the statement to the SQL Server.
    Edited by: kgronau on Jul 23, 2012 10:10 AM

  • How to connect to a Remote Oracle Database

    Hi Friends,
    The error I encountered while connecting to a remote database is ���DataSource name is too long
    String url="jdbc:odbc://abc:1523/test";
    con = DriverManager.getConnection(url,"xyz","xyz1");
    Here Remote Host-name = abc
    Port = 1523
    DataSource Name=test
    User-name = xyz
    Password =xyz1
    The DataSource is created Using Oracle ODBC driver on Windows 2000
    With following details
    DataSource name=test
    Service name = xyz (Database Name)
    User-id=xyz (User name)
    Thanks in advance
    Hamsa

    As suggested you should use a oracle jdbc driver type 2 (JDBC OCI Driver) or 4 (JDBC Thin Driver).
    Because the thin driver is written entirely in Java, is platform-independent. It does not require any
    additional Oracle software on the client side. It can be used for Oracle JDBC applets or applications.
    The OCI driver is targeted for client-server Java applications. It requires an Oracle client installation, so it is Oracle platform-specific and it is not suitable for applets.
    To connect to a database using those drivers here you have two examples of establishing a connection:
    For OCI driver:
    Connection conn = DriverManager.getConnection("jdbc:oracle:oci8:@<dbName>","user","password");
    For thin driver:
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@<host>:<port>:<dbName>", "user", "password");
    And make sure that the classes12.zip file is included in your CLASSPATH.

Maybe you are looking for

  • Any way to lock the size of that window? This is a serious, please, help

    Camera raw 6.0.0.205, that's what came with CS5. Sorry about getting back to this uninteresting subject, I thougth it was small stuff and it's not. So every time I open a raw file, I have to play with the bottom right corner, especially to bring up t

  • Creation of product group

    hi i am creating product group using transaction code mc84 while creating product group it gives error as "The field  is defined as a required field; it does not contain an entry" I have entered Product group   PP_TEST             PP test Plant      

  • Problem With Show Items In Subfolders, Windows 7 64

    Is there a way to make "Show Items From Subfolders" persistent in Bridge CS5. I'm on a Windows 7 64 bit machine. If I click on this under View, if I go to another folder and come back, it will not show the flattened view. Another problem, it seems no

  • How to keep the filter when jump from one report to another report?

    Hi experts, How to use the "Link" or "Button Group" Web Item in BEx Web Application Designer to jump from one report A to another report B, both the filter of report A and report B could be kept and not missing. When I use jump from report A to repor

  • Backup error 4450

    When I try to backup my most recent purchases I get an error 4450 message that states it couldn't backup, unknown error. I've retried a couple of times with no results. I'm using a blank CD-R. Any suggestions?