ORA-12154 error using SQL PLUS

I have no problems connecting using SQL Developer, but I'm having issues using SQL Plus or command prompt. I also set the Oracle_home and SID and still it fails with the following message. Is there anything I can check?

ORA-12154: TNS could not resolve the connect identifier

The same account and tnsnames work well using SQL Developer.

BSK wrote:
Here's the info. Not sure why only SQL MORE fails to solve the connection identifier when the SQL Developer works very well.

tnsnames.ora

B51 =
(DESCRIPTION =
(SDU = 32768)
(ADDRESS = (PROTOCOL = TCP (PORT = 1527))(HOST = hostname.com))
(CONNECT_DATA =
(SERVICE_NAME = B51)
)
)

SQLNET.ora

sqlnet.ora # Network Configuration file: C:\oracle\product\11.2.0\client_1\network\admin\sqlnet.ora
# Generated by Oracle configuration tools.

# This file is actually generated by netca. But if customers can opt for
# install 'Software Only', this file does not exist and without the native
authentication #, they will not be able to connect to the database on NT.

SQLNET. AUTHENTICATION_SERVICES = (NTS)

NAMES. DIRECTORY_PATH = (TNSNAMES, EZCONNECT)

That's what I'm trying:

view the results at the bottom

sqlplus username/passwd@'hostname.com:1527/B51'

Tags: Database

Similar Questions

  • Error trying to recover the ORA-12154 error text

    Hi all

    We want SETTING using ad module OBIA 7964 Finance. As part of have installed us Informatica 9.0.1 in our Linux x 86-64-bit server machine. And in the same machine, we installed a 11.2.0.1.0 oracle client.

    And we install Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production in another linux server.

    Now the question while trying to create a service of Informatica repository we get the error

    2013-04-25 12:52:38: ERROR: (7899 | 140669883090720): (RS |) (BIAPPS_DEV): node01_haidcobidev01: OBJM_54538: unable to connect to the repository BIAPPS_DEV to the orcl database.
    2013-04-25 12:52:38: ERROR: (7899 | 140669883090720): (RS |) (BIAPPS_DEV): node01_haidcobidev01: REP_51002: could not connect to the database server
    Database driver error...
    Function name: logon
    Error trying to recover the ORA-12154 error text

    Database driver error...
    Function name: connect
    Database error: unable to connect to the database using the [lower] user and the connection string [orcl]

    Please let us know is there something missing as part of the Setup and let us know how to solve this problem.

    Thank you
    Dany

    Who is the owner of this post?
    Looks like 2 different people possess!

    What link if you guys pass, try something like
    HostName: port / serviceName

  • ORA-12154 error help need

    Hello

    I am a newbie in oracle forms. I installed oracle database 10 g 2 on windows xp in the c directory. In the D drive, I installed oracle developer suite 10 g. When I try to connect database on developer I get ORA-12154 error.

    Would I have to edit tnsnames.ora in developer suites ' directory or database' this directory.

    Please explain step-by-step so that I can configure developer suite.


    Thank you

    Correction

    Copy from the admin database network directory that is located on drive C in D:\devsuitehome...

  • ORA-12154 error loading I$

    Hi all

    When I try to execute an interface it fails with the error below when you load data to I$ table. He created the I$ table but fails when loading data only. Can someone help me with this

    ORA-12154: TNS: could not resolve the connect identifier specified.


    Thank you

    Just write a sql of the target to check if the DB connection is correct.

    For sure, the problem lies in your db link. Recreate the db link and check if you are able to access the source tables.

    1. click on the db link: run the query on the target (I think your target and staging are on the same db)
    Select * from MANHATTANDR '.» SYN_ASN_HDR;

    You will get the same error, this will confirm that the error is with db link.

    2 give up this db link and re-create the link correct db.

    And then run the SQL in the backend to check if the new db link is correct. i.e.

    Select * from WMOS1 '.» ASN_HDR"@"MANHATTAN_PROD_A

    It may be useful

  • A question about the CREATE DATABASE LINK PUBLIC and ORA-12154 error

    Hi all


    I have a problem on the public database link creation and I would be grateful if you could kindly give me a helping hand. I have the following connection settings in my
    tnsnames.ora file:
    ...
    DGPAPROD.WORLD = 
         (DESCRIPTION = 
           (ADDRESS_LIST = 
            (ADDRESS = (COMMUNITY=tcp.world)
              (PROTOCOL=TCP)(HOST=ORASR001)(PORT=1521)
             ) 
           )
           (CONNECT_DATA = (SID = DGPAPROD))
        )
    ...
    Having the above mentioned parameters, I can connect to this remote database directly in a SQL * more shell:
    $ sqlplus username/[email protected]
    It works pretty well and the connection is established without any problem.

    Now, what I want to do is to create a public database of this remote database link to avoid the user/connection of switch for the visualization of the
    the content of this database. I proceeded in line with the syntax indicated in the Oracle online documentation:

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/statements_5005.htm#SQLRF01205

    This is why I run the following to create a public database link
    CREATE PUBLIC DATABASE LINK SR001_dblink CONNECT TO user IDENTIFIED BY password USING 'DGPAPROD.WORLD';
    Apparently there is no error and the link is created successfully. However, it cannot resolve the remote host and every time I run this query
    (myenterprise is the name of a table in the remote database)
    SELECT *
    FROM myenterprise@SR001_dblink
    
    ERROR at line 1:
    ORA-12154: TNS:could not resolve the connect identifier specified
    What causes this problem?

    Thanks in advance,


    Kind regards
    Dariyoosh

    You must have defined DGPAPROD. WORLD in tnsnames.oar on the server where DB is runnig.

  • Need syntax to get the lines of error in Sql Plus

    Hello

    Could you let me know the command for below.
    After you type SHOW of ERRORS in sql like I get the list of errors as below.
    How can I get the error lines, I want to look at the lines of 1520 to 1525.



    1523/9 PL/SQL: statement ignored
    1693/12 PL/SQL: ORA-00984: column not allowed here
    1776/11 PL/SQL: statement ignored

    Thank you

    Hello
    In SQLPLUS, you can select view ALL_SOURCE to see the source code for the package.

    VIEW all_source
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     OWNER                                              VARCHAR2(30)
     NAME                                               VARCHAR2(30)
     TYPE                                               VARCHAR2(12)
     LINE                                               NUMBER
     TEXT                                               VARCHAR2(4000)      
    

    However, you can also use SQL developer or another IDE that make life a little simpler.
    VR,
    Sudhakar B.

  • ORA-12154 error trying to connect with the customer instant g 11 / LDAP on Ubuntu

    Hello

    I managed to install the client instant 11.2.0.2 and sqlplus on my Ubuntu 11.04 desktop. I am able to connect successfully to DB defined in tnsnames.ora, but when the resolution is (or should be) by LDAP, I get error

    ORA-12154: TNS: could not resolve the connect identifier specified

    Note: while it is fine for the test, it is not a viable option to configure all DB defined in the OID in tnsnames.ora - I need to use LDAP.

    My configuration is:

    Installation folder: / opt/oracle/instantclient_11_2
    TNS_ADMIN = / opt/oracle/instantclient_11_2 /.

    SQLNET.ora
    NAMES. DIRECTORY_PATH = (TNSNAMES, LDAP)

    I am sure that the tnsnames.ora and ldap.ora are valid, as I can connect on another machine with the full client installed successfully by using the same files.

    I tried tracing facility in sqlnet.ora as follows
    TRACE_LEVEL_CLIENT = SUPPORT
    TRACE_DIRECTORY_CLIENT = / tmp
    TRACE_FILE_CLIENT = sqlnet.trc
    but not the trace file is generated in the directory/tmp - I'm doing something wrong? (Note, I also tried to set DIAG_ADR_ENABLED = OFF as suggested by Laurenz Albe in Instant client do not trace but which did not help)

    I checked DocID = 359206.1 but I don't think that this applies as I am on 11 g.

    I hope someone can help. Thanks in advance!

    It might be the return transport of the characters in the parameter files - make sure your sqlnet.ora and ldap.ora are in Unix format.

    Linux vi versions tend to switch seamlessly between unix and back mode so it isn't always obvious - you can check with something like "od - c sqlnet.ora.

  • java.sql.SQLException: ORA-13988 error in SQL Setup

    Hello

    I've updated the database version 10.2.0.2 to 11.2.0.1. When I try to run sql tuning advisor I have an error:
    java.sql.SQLException: ORA-13988 given to variable arguments list feature to report an invalid entry. ORA-06512: at "SYS." DBMS_REPORT ".
    I searched the error in google but not found any recommendation.

    Thank you.

    Salvation;

    There is a note juts into metalink which is mention error ORA-13988, please check below if it is not help that I propose to place SR
    Dbconsole Performance tab requires second Login [1286378.1 ID]

    Concerning
    HELIOS

  • Cannot use SQL * Plus connection under the sys account name?

    Hi all:

    As the title, is it necessary?

    user12086319 wrote:
    Here's the error using sys log in * 10 g XE *.
    ORA-28009: connection as SYS must be SYSDBA or SYSOPER.

    How can I use SYS to open a session?

    Thank you.

    Try

    sqlplus "/ as sysdba"
    
    OR 
    
    sqlplus /nolog
    connect / as sysdba
    
  • Error - using sql IKM in Hyperion Planning - ODI 11 g

    Hello!

    I need help... I use "IKM sql for Hyperion Planning" to load the metadata, all stages of work without error, except this:

    6 - integration - INTERFACE_DIM - statistical report

    org.apache.bsf.BSFException: exception of Jython:
    Traceback (innermost last):
    "< String >" file, line 2, in there?
    Planning, writer load summary:
    Number of rows processed successfully: 0
    Number of lines rejected: 126

    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInBSFEngine(SnpScriptingInterpretor.java:345)
    at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:169)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java:2374)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1615)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java:1580)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2755)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java:68)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:322)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:237)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:794)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
    at java.lang.Thread.run(Thread.java:619)

    What should I do?

    Thanks in advance

    Enable logging in the options of the IKM, then check the error log file and you should see the reason.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • ORA-12154 with 11g and heterogeneous services

    Hello
    I have a procedure that bring data from a mysql on a service of HS server.
    In 10G has worked very well, but after I migrated to 11g, weird things happen.
    If I ran the procedure (or work that calls it) directly from sqlplus, it's fine, but if I schedule a task to run this procedure, he breaks up with: ORA-12154: TNS: could not resolve the connect identifier specified.
    It's like some environmental parameters or the rights are missing when this work is performed automatically.
    So what's changed in 11g?


    Any help is appreciated,
    Thank you

    ORA-12154: ALWAYS occurs only on SQL Client & not SQL * Net packets never leave client system
    ORA-12154 NEVER involves the listener, the database itself or whatever it is on the DB server.
    ORA-12154 occurs when the client wants to connect to a DB Server system by using a connection string.
    AMT-03505 is thrown by tnsping & is the same error ORA-12154 thrown by sqlplus or others.
    The find operation fails because the supplied name can NOT be resolved at any remote DB.
    The analogous operation would be when you wanted to call someone, but did not find their name in any directory.
    The most common cause for ORA-12154 error is when the connection alias cannot be found in tnsnames.ora.
    The research of the alias operation can have an impact on the content of the sqlnet.ora file. DOMAIN entry specifically.
    So after the content of the sqlnet.ora file.
    TROUBLESHOOTING GUIDE: ORA-12154 & TNS-12154 TNS: could not resolve service name [114085.1 ID]
    http://edstevensdba.WordPress.com/2011/02/26/ora-12154tns-03505/

  • Another Post on 'could not resolve identifier' ORA-12154

    Hi experts,

    A new installation of 11g and I CAN connect to the database via SQLPlus but I get ORA-12154 error when you try to connect through RMAN.

    I used the EZCONNECT parameter in netca

    SQLNET. ORA NAMES_DIRECTORY_PATH a = (EZCONNECT)


    Any ideas for what I can check, please?

    Thank you, John

    user629010 wrote:
    Hi experts,

    A new installation of 11g and I CAN connect to the database via SQLPlus but I get ORA-12154 error when you try to connect through RMAN.

    I used the EZCONNECT parameter in netca

    SQLNET. ORA NAMES_DIRECTORY_PATH a = (EZCONNECT)

    Any ideas for what I can check, please?

    Thank you, John

    The connection string, you really used to connect knowing would have been helpful...

    =================================
    ORA-12154: TNS: could not resolve the connect identifier specified

    This error means one thing and one thing only. The customer couldn't find the entry specified in the tnsnames.ora file being used.

    Following this statement, remember that when you use a dblink, the database that defines the link acts as a client to the database that is the target of the link. So in this case, the tnsnames.ora on the host of your source file must have an entry for your db target, as defined in the db_link.

    And for the umpteenth time... This error has NOTHING to do with the status of a listener. The connection request never got far enough to reach a listener. If someone tells you to check a listener in response to ora-12154, they do not pay attention, or do not understand how works the TNS. This error is equivalent to not be able to place a phone call because you do not know the number of the part you want to reach. You would not debug this situation by going to the home of the other guy and test his phone, or by accessing the phone company and the standard test. And you are debugging an ORA-12154 by checking the listener. If I had a list of ten albums of 'Incredibly Simple Concepts (tm)' which must be burned in the brain of anyone claiming to be an Oracle DBA, it would include "ORA-12154 has nothing to do with the listener.

    =================================

    Suppose you have the following in your tnsnames.ora:

    larry =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = curley)
        )
      )
    

    Now, when you issue a connect, say like this:

    $> sqlplus scott/tiger@larry
    

    TNS will appear in your tnsnames.ora for an entry called "larry". Then, tns sends a request to (PORT = 1521) on (HOST = myhost) to aid (PROTOCOL = TCP), requesting a connection to (SERVICE_NAME = curley).

    Where's (HOST = myhost) on the network? When the request is passed to tns to the next layer in the network stack, the name "myhost" resolves to an IP address, either via a file 'hosts' local, through DNS, or possibly other mechanisms being used less. Alternatively, you can hard-code the IP (HOST = 123.456.789.101) in the tnsnames.ora.

    Then, the request arrives at port 1521 myhost. If all goes well, there is a listener on myhost configured to listen on port 1521, and this listener knows SERVICE_NAME = curley. If so, you'll be connected.

    A few important points.

    First, the listener is a process only server-side . It's all in life seeks applications for reception for connections to the databases and set up these connections. Once the connection is established, the listener is out of the picture. It creates the connection. Is not maintain the connection. A listener, linking an oracle of the House, listening on a single port, use multiple instances of database in several versions of several houses. It is unnecessary complexity to try to have several headphones. It's like the telephone company, to build a separate table for each customer.

    Secondly, the tnsnames.ora file is a problem on the client side . Its purpose is to address resolution - the equivalent of the 'hosts' file tns further to the bottom of the network stack. The only reason it exists on a host computer is because this machine also can run client processes.

    What can go wrong?

    First, there may not be an entry for 'larry' in your tnsnames file. In this case, you get "ORA-12154: TNS: could not resolve the connect identifier specified" no need to go looking for a problem on the host, with the listener, etc.. If you cannot place a phone call because you do not know the number (cannot find your phonebook (tnsnames.ora) or can not find the party looking for listed in it (no entry for larry)) you don't look at problems at the switchboard.

    Perhaps the entry for larry was found, but myhost could not be resolved to an IP address (for example there is no entry for myhost in the local hosts file). This will mean by "ORA-12545: Connect failed because target host or object does not exist.

    Maybe there is an entry for MyServer in the local hosts file, but it specified a bad IP address. This will mean by "ORA-12545: Connect failed because target host or object does not exist.

    Maybe the INVESTIGATION period was good, but there is no listener running: "ORA-12541: TNS:no listener.

    Maybe the INVESTIGATION period was good, there is a listener to myhost, but he is listening on a different port. "ORA-12560: TNS:protocol adapter error.

    Maybe the INVESTIGATION period was good, there is a listener to myhost, listening on the specified port, it's unknown SERVICE_NAME = curley. "ORA-12514: TNS:listener is not currently of service requested in connect descriptor.

  • Unable to see the tilde characters correctly in SQL * Plus window BACK

    Hello

    I have a tilde character display problem in SQL * more correctly.

    The environment is: Oracle 10.2.0.5 Server (Yes, I know, it is longer supported, but it is not possible to update now).

    Database settings:

    SQL > select * from nls_database_parameters by parameter.

    PARAMETERVALUE

    ------------------------------ ----------------------------------------

    NLS_CALENDARGREGORIAN
    NLS_CHARACTERSETWE8MSWIN1252
    NLS_COMPBINARY
    NLS_CURRENCY?
    NLS_DATE_FORMATRR. MR. DD
    NLS_DATE_LANGUAGEPortuguese
    NLS_DUAL_CURRENCY?
    NLS_ISO_CURRENCYPortugal
    NLS_LANGUAGEPortuguese
    NLS_LENGTH_SEMANTICSBYTE
    NLS_NCHAR_CHARACTERSETAL16UTF16
    NLS_NCHAR_CONV_EXCPFAKE
    NLS_NUMERIC_CHARACTERS,.
    NLS_RDBMS_VERSION10.2.0.5.0
    NLS_SORTWEST_EUROPEAN
    NLS_TERRITORYPortugal
    NLS_TIME_FORMATHH24:MI:SSXFF
    NLS_TIME_TdZ_FORMATTZR HH24:MI:SSXFF
    NLS_TIMESTAMP_FORMATRR. MR. DD HH24:MI:SSXFF
    NLS_TIMESTAMP_TZ_FORMATRR. MR. DD HH24:MI:SSXFF TZR

    20 selected lines.

    Data are inserted and displayed correctly by the application (Oracle Forms 6 - Yes, I know it is old and not supported more :-)))

    The only problem is that I can't view "tilde one" or "o tilde" correctly when you use SQL * Plus window BACK directly connected to the database. Other accented characters appear very well (acute accents a, for example).

    If I use the SQL Windows * more available in point 10.2 so all the characters appear correctly.

    NLS_LANG and code page are correct.

    SQL > host chcp

    Active code page: 850

    SQL > host % NLS_LANG Echo%

    AMERICAN_AMERICA.we8pc850

    SQL > select * from nls_session_parameters by parameter.

    VALUE OF THE PARAMETER

    ------------------------------ ----------------------------------------

    NLS_CALENDAR GREGORIAN

    BINARY NLS_COMP

    NLS_CURRENCY $

    NLS_DATE_FORMAT DD-MON-RR

    NLS_DATE_LANGUAGE PORTUGUESE

    NLS_DUAL_CURRENCY $

    NLS_ISO_CURRENCY AMERICA

    NLS_LANGUAGE AMERICAN

    NLS_LENGTH_SEMANTICS BYTES

    NLS_NCHAR_CONV_EXCP FAKE

    NLS_NUMERIC_CHARACTERS.,.

    NLS_SORT BINARY_AI

    NLS_TERRITORY AMERICA

    NLS_TIME_FORMAT HH.MI. SSXFF AM

    NLS_TIME_TZ_FORMAT HH.MI. SSXFF AM TZR

    NLS_TIMESTAMP_FORMAT-DD-MON-RR HH.MI. SSXFF AM

    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI. SSXFF AM TZR

    17 selected lines.

    Bad displays data:

    SQL > select notes to atj_disc_cong where Ref = 645; -See attached screenshot Snap1.jpg

    However, the data is stored correctly:

    SQL > select dump (notes) in the atj_disc_cong where Ref = 645;

    DUMP (NOTES)

    --------------------------------------------------------------------------------

    Typ = 1 Len = 21: 231,32,227,225,224,226,32,233,232,234,32,237,236,32,243,245,242,224,32,250,249

    Also, if I copy the wrong characters has resulted in Word, they appear very well (that is, I get a tilde correctly a)

    No idea why they are not display correctly in SQL * more?

    Thank you

    The data is stored correctly, as shown in the PICTURE, even if you really do not have the data expected if I'm only guessing.

    The problem is most likely with the police. Your command prompt is implemented with code 850 (WE8PC850), but the police page seems to be in the code page 437 (US8PC437). You should change the font to a non-raster font or change page codes and NLS_LANG to the code page 437.

    Note, do not define NLS_LANG in system properties, because it affects so Oracle Forms. Set only in the command prompt given.

    Thank you

    Sergiusz

  • Error (21,100): PL/SQL: ORA-00997: illegal use of the LONG data type

    CREATE or REPLACE (name in varchar2) procedure Compress_tab_partition
    is
    last_mnth_var varchar2 (8);
    curr_mnth_var varchar2 (8);
    number of last_mnth;
    number of curr_mnth;
    last_partition varchar2 (8);
    high_val varchar2 (4000);
    Start

    Select to_char (add_months (trunc (sysdate, 'MM'),-1), 'YYYYMM') | ' 00' in the double last_mnth_var;
    Select to_char (sysdate, 'YYYY') | TO_CHAR (sysdate, 'mm') | ' 00' in the double curr_mnth_var;
    Select to_number (last_mnth_var) in the double last_mnth;
    Select to_number (curr_mnth_var) in the double curr_mnth;

    Dbms_output.put_line ('Compression of GOLDMGR Table scores.' | table-name |) "to go". ») ;
    Dbms_output.put_line(' ');

    / * Step 1 - identify the name of the partition of the specified table must be compressed * /.
    Select high_value from high_val from user_tab_partitions where table_name = table-name;
    Select nom_partition into last_partition from user_tab_partitions where table_name = table-name and high_value = rtrim (high_val);

    / * Step 2 - Alter partition table to compress * /.

    run immediately "ALTER TABLE GOLDMGR." | table_name | ' CHANGE THE PARTITION '. last_partition | "COMPRESS by low query";

    / * Step 3 - Index rebuild step * /.

    I'm in (select index_name in user_indexes where table_name = table-name)
    loop
    run immediately "ALTER INDEX GOLDMGR." | i.index_name |' REBUILD ";
    end loop;

    Dbms_output.put_line (' COMPLETED: compress the Table partitions change.) ") ;

    end;
    /

    I'm getting an error like: Error (21,100): PL/SQL: ORA-00997: illegal use of the LONG data type

    Please resolve.

    HIGH_VALUE datatype is LONG. You may not use for a long TIME in WHERE clause expressions. You need to loop through the partitions by selecting HIGH_VALUE and then comparing. Secondly, there is no need to select double to calculate expressions. For example:

    Select to_char (add_months (trunc (sysdate, 'MM'),-1), 'YYYYMM') | ' 00' in the double last_mnth_var;

    should be replaced by

    last_mnth_var: = to_char (add_months (trunc (sysdate, 'MM'),-1), 'YYYYMM') | ' 00'.

    and there is no need to add_months here:

    last_mnth_var: = to_char (trunc (sysdate, 'MM') - 1, "YYYYMM"). ' 00'.

    But the main question is simply ALTER TABLE MODIFY PARTITION COMPRESS allows compression but does not compress. You must issue ALTER TABLE MOVE PARTITION COMPRESS:

    SQL > create table tbl (n) partition by range (n)
    2 (partition p1 values less than (maxvalue))
    3. Select lpad('X',4000,'X') from dual connect by level<=>
    4.

    Table created.

    SQL > select bytes
    2 from WHERE user_segments
    3 where nom_segment = 'TBL '.
    4 and nom_partition = 'P1 '.
    5.

    BYTES
    ----------
    830472192

    SQL > alter table tbl
    2. change the partition p1 compress
    3.

    Modified table.

    SQL > select bytes
    2 from WHERE user_segments
    3 where nom_segment = 'TBL '.
    4 and nom_partition = 'P1 '.
    5.

    BYTES
    ----------
    830472192

    SQL > alter table tbl
    2. move the partition p1 compress
    3.

    Modified table.

    SQL > select bytes
    2 from WHERE user_segments
    3 where nom_segment = 'TBL '.
    4 and nom_partition = 'P1 '.
    5.

    BYTES
    ----------
    8388608

    SQL >

    SY.

  • Ora exp error 12154 meeting using rhel 5.5 64bits, oracle 10 g 2

    Dear Sirs, Hello can somebody highlight which files I have to make corrections.

    I noticed that the work of sqlplus network very well where the machine local exp this error,

    Export: Release 10.2.0.5.0 - Production on sat 8 Jan 16:25:24 2011

    Copyright (c) 1982, 2007, Oracle. All rights reserved.


    EXP-00056: ORACLE error 12154
    ORA-12154: TNS: could not resolve the connect identifier specified
    EXP-00000: export completed unsuccessfully

    Kind regards

    Hello

    ORA-12154: TNS: could not resolve the connect identifier specified

    This link can guide you:

    http://www.error-code.org.UK/view.asp?e=Oracle-ora-12154

    More, if you detail the exact declaration you run, he can help us.

    Do specify you ORACLE_SID before running the Export statement?

    Hope this helps.
    Best regards
    Jean Valentine

    Published by: Lubiez John Valentine's day January 8, 2011 14:50

Maybe you are looking for

  • Drivers W2k for Tecra A4PTA42E

    Hi all We have a network of business and it will run on Win2k.We have just received a shipment of new notebooks Tecra A4, and now we try to install Win2k on itbut we cannot get all the devices to work.We researched all Toshiba sites but no luck in fi

  • Manually change the number of test step

    I want to be able to change manually ot test step numbers are the numbers in my document reqts for ease of typing in the architecture of sequence files.  Is it possible to be able to set the number of test step to say 0010, 0023, 0030, etc. on mine?

  • I can't open my email IE account - it starts then stops and an error pop up My IP tried but it's IE-I have windows XP

    After a Windows Update - the next morning I couldn't open IE to get my emails. It starts to load and then stops. An error message appears that says: an unknown error has occurred. Account ' pop - server.cfl.com. Server "pop - server" pop protocol: po

  • Move from vista to windows from one computer to another

    My brother has installed Windows 7 Enterprise on my way of thinking a laptop girls that product key could go on another computer.  It did not work.  Now I have Windows 7 (not authentic) here.  I have another computer that has Windows Vista on it, but

  • my true series of my laptop has been cleared

    I had a problem with my recovery system and I lost my recovery disc for my toshiba laptop that comes with a family license from microsoft windows vista premium 64-bit sp1, also I got my license on the back of the laptop almost erased accedently, I ca