ORA-01041 connecting to the database

Hi the gems...

We have changed the date of the server system. We did it with retroactive effect for two months.

But after that, we can not connect to the database. Not sysdba, rather than non-sysdba. Sqlplus "virtue sysdba" event is also a failure.

the error is: ORA-01041: internal error. hostdef extension doesn't exist

My database is 11 GR 1 material and windows server.


The last lines of the log of alerts:

***********************************************************************

Fatal OR connect error 12631, connect to:
(DESCRIPTION =(LOCAL=YES) (ADDRESS = (PROTOCOL = DOB)))

VERSION INFORMATION:
AMT for 32-bit Windows: Version 11.2.0.1.0 - Production
Oracle leaves NT Protocol adapter for 32-bit Windows: Version 11.2.0.1.0 - Production
Time: April 27, 2012 12:12
Tracing not lit.
AMT error struct:
NS main err in code: 12631

AMT-12631: username recovery failed
NS secondary err code: 0
NT main err in code: 0
NT secondary err code: 0
NT OS err code: 0
Fri Apr 27 12:12:17 2012


***********************************************************************

Fatal OR connect error 12631, connect to:
(DESCRIPTION =(LOCAL=YES) (ADDRESS = (PROTOCOL = DOB)))

VERSION INFORMATION:
AMT for 32-bit Windows: Version 11.2.0.1.0 - Production
Oracle leaves NT Protocol adapter for 32-bit Windows: Version 11.2.0.1.0 - Production
Time: April 27, 2012 12:12:17
Tracing not lit.
AMT error struct:
NS main err in code: 12631

AMT-12631: username recovery failed
NS secondary err code: 0
NT main err in code: 0
NT secondary err code: 0
NT OS err code: 0



Please help... Thanks in advance

Can you define in your SQLNET.ora below and try again?

SQLNET. AUTHENTICATION_SERVICES = (NONE)

Tags: Database

Similar Questions

  • Connect to the database with SQL * more: is TNSNAMES. ORA used?

    Hello

    We have a local database called DEV01 and a copy of this database in a data center. To be able to connect to both databases, the TNSNAMES file. ORA

    on the local database server (not the one in the data center) has the following entries:

    / * Entry for the local database * /.

    DEV01_local, DEV01_local. WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server01) (PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = DEV01)
    )
    )

    / * Entry for the database in the data center * /.

    DEV01, DEV01. WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server02) (PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = DEV01)
    )
    )

    When I connect to the local database server, I set the Oracle environment as follows:

    export ORACLE_SID = DEV01

    export PATH=/opt/oracle/app/oracle/product/9.2.0/bin:$PATH

    export ORACLE_HOME=/opt/oracle/app/oracle/product/9.2.0

    Now I start SQL * more as follows:

    Oracle # > sqlplus user/user

    SQL > select instance_name, host_name from v$ instance;

    INSTANCE_NAME HOST_NAME

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

    SERVER01 DEV01

    As the SID is on two databases of the same (DEV01) I really don't understand how Oracle decides which of the SQL databases * more connects to.

    Is it the entry in the TNSNAMES file. ORA?

    But when I start SQL * more as follows:

    Oracle # > sqlplus user/user@DEV01_local

    SQL > select instance_name, host_name from v$ instance;

    INSTANCE_NAME HOST_NAME

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

    SERVER01 DEV01

    or

    Oracle # > sqlplus user/user@DEV01

    SQL > select instance_name, host_name from v$ instance;

    INSTANCE_NAME HOST_NAME

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

    DEV01 server02

    everything is as expected.

    Does anyone know who is the chosen database when just to connect with 'sqlplus user/user' (without the @DEV01 or @DEV01_local)?

    Any help will be appreciated!

    Rgds

    Jan

    When you connect to the local database that is connected to the server01, you need only specify the sid in the environment, in this case, Oracle tnsnames file to connect, actually uses, it uses any of the listener.  It uses what is called a connection needed.  It is purely a side connection server, and as long as the sid is located in the environment resolves to a database running on that server, you will be get connected.

    When you connect using the @connect_descriptor, like you second case, then Oracle will use the configured naming, including tnsnames, methods to solve the 'real' database  In this case, the auditor is required to create the connection to the database.

    John

  • Unable to connect to the database instance: ORA-28001: the password has expired

    Hi all

    I'm on oracle 11g grid.


    I get unable to connect to the database instance: ORA-28001: the password has expired (ERROR of DBD: OCISessionBegin) error.

    I checked and found that my user dbsnmp expired password. I found the page on the grid control to change the password of user dbsnmp.

    but I want to know. If I changed dbsnmp password using the grid control. Is there any other task I have to do after the change of user dbsnmp password.

    Please let me know.


    Thank you

    Hi PK,.

    If GC can reuse the monitored GENERAL to connect to the database account I can't think of anything you should do.
    The database, what has happened is an 11g database? If so the security policy has been changed in this version, which means that in half a year you will still have a locked account of DBSNMP.

    If your company security policy allows, you can avoid this by changing the password_life_time to an unlimited number of default profile:
    change the default profile limit password_life_time unlimited;

    Eric

  • Unable to connect to the database instance: ORA-02391: exceeded IS simultaneous

    Hello

    I get continually alert to OEM:

    Unable to connect to the database instance: ORA-02391: simultaneous exceeded SESSIONS_PER_USER (DBD ERROR: OCISessionBegin).

    I run the query, but has not found any sesion in the database:

    SQL > select username, count (*) from v$ session of the Group of user name.

    COUNT (*) USERNAME
    ------------------------------ ----------
    SYS 1
    8
    Could you please help me solve this problem?

    Thank you
    Gulshan

    Listener.log file saves connection applications
    compare the timestamps in listener.log with the alert_SID.log file to determine the culprit

  • Unable to connect to the database GGSCI

    Hi experts,

    Currently, I am trying to configure an installation of goldengate and have a problem with the connection to the database through GGSCI.

    In SQLPLUS and sql developer, I can connect to the database, but thanks to GGSCI is impossible to connect to the database.

    I am trying to connect this name ggate@service, I get an error ORA-12504. I am unable to connect using this method.

    ggate@ggsrc password username dblogin *.
    ERROR: Could not connect to the database using the user ggate@ggsrc. Please check privileges.
    ORA-12504: TNS:listener did not have the SERVICE_NAME in CONNECT_DATA.

    granted DBA privilege user GGATE but still cannot connect to the database, can any one help on this subject, it is very useful.

    Thanks in advance.

    AT

    Hi thanks,

    After the set up TNS_ADMIN environment its works very well

    Thank you

  • ORA-28547: connection to the server has failed, probable Oracle Net admin error

    Hello

    Environment

    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    

    I'm ORA-28547: failed to connect to the server, probable Oracle Net admin error when connecting to the database as username/password@orcl,If, I do not @orcl it connects without any problems. But I can't connect from client machines without dbstring.

    This problem started recently, and I understand that it is because of the dynamic ip of the linux machine. Previously the Linux m/c ip was 172.25.210.177 unfortunately was launched once the machine ip has changed in 172.25.210.148.

    To bring the database up I started as usual and got to the top, but when connecting db with the above error is being username/password@orcl.

    To solve the i changed the ip address in tnsnames.ora and listener.ora but no luck. Please advice how to solve.

    It will run until the next change of the ip address. If you want a permanent solution, you must assign a static ip address. Why is your dynamic ip address? What is a local testbox.foobar.com or a production system that must be accessible to other systems?

  • connection to the database

    Hi al l,.

    This is the first time I use sql developer, I downloaded the version Version 4.0.2.15 build 15.21, downloaded the jdk.

    and it works fine, but I can't connect to the database,

    -We have the database (exsys11) installed on a server,

    -J' installed sql developer on my client.

    -J' copied 'tnsnames.ora' and 'sqlnet' in the folder of sql developer,.

    but he can't see the databases.

    I am logged in using a user name and a password and a connection 'tns' and role type = default.

    but he can't see my databases?

    Thank you

    Tools > Preferences > database > advanced

    In the last piece, directory Tnsnames, put in your sqldev folder where you copied the tnsnames file.

    That's assuming that change your ' basic' connection type 'TNS' and access to 'Network Alias' dropdown list control is not already show you your tns entries.

  • Hide the username / password when connecting to the database

    I need to find a way to hide the user name / password when connecting to the database (via a script), or by encryption or any other method that hides this information when I connect to the database.

    I use Oracle 11 g.

    I tried with the portfolio method, but could not connect to the database of the error below, even the user name and password:

    ERROR:

    ORA-01017: invalid username / password; connection refused

    I plugged this way (after the cover configuration):

    sqlplus /@DB

    Please help me.

    Concerning

    Luiza

    Hi Luiza,

    Try to find out why the portfolio method does not work, check the implementation using ref 340559.1 Note

    Check also for example client and server versions / compatibility, evolves sec_case_sensitive_logon relevant parameter (as a test, because it must be true) etc.

    Greetings,

    Damage ten Monkshood

  • Inability to connect to the database

    OS: 8.1 Pro 32-bit Windows

    Java: 7u45 (build 1.7.0_45 - b18)


    Install Oracle 11g.

    When you open localhost:1158 / em - the message:

    "The database is down. Please specify the credentials of the host to access the restart and database diagnostic tools. »

    After entering the command:

    emctl status dbconsole

    It is reported that Oracle Enterprise Manager 11 g is running.

    When you type:

    emctl status agent

    indicates that the agent works.



    All Oracle, except OracleJobScheduler, running services.


    SYSMAN, DBSNMP, SYSTEM and SYS are not blocked


    File Emoms.trc when connecting to the database:

    http://rghost.NET/50166676


    Folder with alter.log:

    http://rghost.net/50165784



    In listener.ora replaced


    SID_LIST_LISTENER =

    () = SID_LIST

    () SID_DESC =

    () SID_NAME = CLRExtProc( )

    () ORACLE_HOME = C:\app\TorchTT\product\11 2. . 0\dbhome_1( )

    () PROGRAM = extproc( )

    () ENVS = "EXTPROC_DLLS =ONLY:. C:\app\TorchTT\product\11. ("2. 0\dbhome_1\bin\oraclr11. dll" ()

    )

    )


    on

    SID_LIST_LISTENER =

    () = SID_LIST

    () SID_DESC =

    () SID_NAME = TorchTTDB( )

    () GLOBAL_DBNAME = TorchTTDB( )

    () ORACLE_HOME = C:\app\TorchTT\product\11 2. . 0\dbhome_1( )

    () PROGRAM = extproc( )

    () ENVS = "EXTPROC_DLLS =ONLY:. C:\app\TorchTT\product\11. ("2. 0\dbhome_1\bin\oraclr11. dll" ()

    )

    )


    did not help.



    Subsequently decided to not wait and reset the database.


    Immediately after the reinstallation of page https://localhost:1158 / em / successfully opened.


    Only when the request to add a table to the executed successfully, but Developer SQL database query in the list of tables is not displayed, update the list and restart the program did not help. However, when re - create the table with the same name appears on the error you have already created a table with a given name.


    After restarting the computer database is available again.

    Can you please how to fix?


    Translated by Google Translate.

    If I'm right, the problem is resolved.

    Each of the reinstall previous, of the database at the beginning of the message appeared on the system configuration is not in line with the minimum requirements. Earlier the same error is indicated as a result of the use of new versions of Java, as Oracle 11 g support officially more young and therefore do not attach importance to this post.

    In the end, I decided once more to reinstall the basis data, but in compatibility mode for Windows 7. So - when you run the error to install an incorrect configuration does not appear. And after that the installation of the base is available, restart the machine - the base is again available.

  • cannot connect to the database

    Hello

    on 10.2.0.3

    In my listener.ora, I gave port 1521.

    In tnsnames.ora also 1521.

    When I try to connect to my db I get:

    sqlplus system@MYDB

    ORA-12514: TNS:listener is not currently of service requested.

    in listener.log I

    07 NOV. -2013 09:04:54 * (CONNECT_DATA = (SERVICE_NAME = MYDB) (CID = (PROGRAM = D:\oracle\bin\sqlplus.exe)(HOST=SERVER)(USER=user))) * (ADDRESS = (PROTOCOL = tcp)(HOST=127.0.0.1) (PORT = 4358))))

    or

    (ADDRESS = (PROTOCOL = tcp (PORT = 1858))(HOST=127.0.0.1))

    or

    (ADDRESS = (PROTOCOL = tcp (PORT = 1869))(HOST=127.0.0.1))

    In sqlnet.log I

    AMT-12564: TNS: denied connetion

    My question is why in listener.log I have different port numbers instead of 1521?

    Thank you.

    user10274093 wrote:

    Thanks Hoek.

    I cannot connect to the database on the server hosting then no use of the customer.

    I don't see in these links, something on the port number change in listener.log.

    Kind regards.

    Port 1521 is used to communicate with the listener.  If the listener is able to actually process the request (your error indicates it is NOT able to process the request), while it generates a server process that communicates with the client on a different port.  At this point, the listener is out of the picture until the connection goes.

    Read the links once again, especially the other, which directly addresses your specific error message.

    And know that the requests to the IP 127.0.0.1 (or its alias 'localhost') never to leave the machine for which the request was made... your log listener seems to indicate that is used, but if that were the case, you would have got a different error.  If you read the links provided, you will see that the first centerpiece of the ora-12514-related news is the release of "lsnrctl status".

  • SGC does not start - unable to connect to the database

    Hi all

    My development/test environment is unbootable SGD. This has really we stopped in our tracks...

    He'll start the WebTier, but CMS will not come to the top:

    [Journal of the oracle@ora-emcc] $ $OMS_HOME/bin/emctl status SGD

    Oracle Enterprise Manager Cloud control 12 c Release 2

    Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.

    WebTier is in place

    Oracle Management Server does not work for the following reason:

    Unable to connect to the repository database. SGD will be automatically restarted once he identifies database and the listener are on the rise.

    Try to check the details SGD results in an error as well:

    [config oracle@ora-emcc] $ $OMS_HOME/bin/emctl status who-details - sysman_pwd $SYSMAN_PWD

    Oracle Enterprise Manager Cloud control 12 c Release 2

    Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.

    Exception in thread "main" java.util.MissingResourceException: can't find bundle for the base oracle.security.jps.internal.common.resources.keystore.KeyStoreResources, locale name

    at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)

    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)

    at java.util.ResourceBundle.getBundle(ResourceBundle.java:952)

    to oracle.security.jps.util.JpsBundle. < init > (JpsBundle.java:70)

    at oracle.security.jps.util.JpsBundle.getResourceBundle(JpsBundle.java:151)

    at oracle.security.jps.util.JpsBundle.getResourceBundle(JpsBundle.java:106)

    at oracle.security.jps.JpsLocalizableException.getResourceBundle(JpsLocalizableException.java:157)

    at oracle.security.jps.JpsLocalizableException.getLocalizedMessage(JpsLocalizableException.java:140)

    at oracle.security.jps.JpsLocalizableException.getLocalizedMessage(JpsLocalizableException.java:131)

    at java.lang.Throwable.toString(Throwable.java:343)

    at java.lang.String.valueOf(String.java:2826)

    at java.lang.StringBuilder.append(StringBuilder.java:115)

    at java.lang.Throwable.printStackTraceAsCause(Throwable.java:536)

    at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545)

    at java.lang.Throwable.printStackTraceAsCause(Throwable.java:545)

    at java.lang.Throwable.printStackTrace(Throwable.java:516)

    at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:59)

    at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:342)

    at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:304)

    at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:234)

    at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)

    at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)

    at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)

    at org.apache.log4j.Category.callAppenders(Category.java:203)

    at org.apache.log4j.Category.forcedLog(Category.java:388)

    at org.apache.log4j.Category.error(Category.java:319)

    at oracle.sysman.emctl.oms.PrintOMSSetupInfo.main(PrintOMSSetupInfo.java:240)

    In the WebLogic administration Console, I see the BEEP, EMGC_ADMINSERVER, and EMGC_OMS1 are all in the State Running and health Ok.

    Our servers SGD and OMR are (and have always been) 2 different machines. The database on OMR has always been (and is currently) high and available.

    Checking that I can connect to the database of repository on the SGD server OMR:

    [oracle@ora-emcc ~] $ sqlplus sysman / $SYSMAN_PWD@ora-emccdb:1521 / emccdb

    SQL * more: version 11.1.0.7.0 - Production on Thu Nov 10 23:34:53 2013

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

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL >

    Any suggestion will be highly appreciated.

    Ed

    Hi Mathieu,

    Thanks for the comments. I just got an update of Oracle on the SR with a few more instructions on different things to try/run.

    I met problems with Weblogic in step 1 and could not understand the multitude of possible causes. After some googling I found others who has ended up just restart that did the trick. It worked for me as well as far as I can see now. I'll do some tests to check, but well.

    Thank you

    Ed

  • ORA-28547: connection to the server failed, probable Oracle Net admin error.

    Dear all,

    My11gR2 database on windows 2008 R2 Standard is in error "ORA-28547: connection to the server failed, probable Oracle Net admin error.

    It's when I try to log on to the server itself

    as:

    SQL * more: Production of release 11.2.0.1.0 kills him Oct 8 05:43:03 2013

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

    Enter the user name: sys/***@orcl as sysdba

    "ORA-28547: failed to connect to the server, likely admin error Oracle Net.

    This started happening when the server has been restarted. I don't know if I have to stop any service, as in some cases under Linux should be stopped service iptables.

    The solution I found on most of the forums is to change in sqlnet.ora since '#SQLNET. AUTHENTICATION_SERVICES = (NTS) 'to' #SQLNET. AUTHENTICATION_SERVICES = (NONE)"and restart the receiver.

    But even if it doesn't in my case.

    Kindly help.

    Best regards, Imran

    Guys, there are 2 databases installed on the same server, to correctly configure the SID. Once set, I could see that the database is down and when starting it started working well.

    Thanks for your efforts.

  • Unable to connect to the database homepage OracleXE 10.2.0.1.0

    Hi Oracle Experts,

    I installed OracleXE 10 g on an application server and has worked for 3 years. The installation is based on the default configuration where:

    Destination folder: C:\oraclexe\

    Oracle database listener port: 1521

    Port for the Oracle Services Microsoft Transaction Server: 2030

    HTTP listener port: 8080

    The installation work well and be able to view the home page of the database. The problem arises when local desire to ICT to change the listening port of Oracle database to another port instead of 1521 to comply with their security policies.

    I changed the port using method below:

    (1) update the port number in listener.ora desired port

    (2) make sure SID_name (XE) is registered in listener.ora by adding this line to SID_LIST

    (SID_DESC =

    (SID_NAME = XE)

    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)

    )

    )

    (3) recharge the listener and restart the service.

    I am able to connect to the database using SQL Plus by using the port assigned port, but when I tried to view the home page of the database, I can't load the page with Internet Explorer connection problem error.

    I changed the default to 8089 but still cannot connect HTTP port. But when I went to the port (1521) default listening port, I am able to view the home page of the database.

    Anyone know how to fix this?

    Thank you in advance.

    You have followed all the steps documented? 4 general network connections

    HTH
    Srini

  • frmcmp cannot compile the modules containing SQL code that connected to the database

    Hello

    I checked several hundred messages of the forum on the net without finding a solution.

    I have a Linux server with 11.1 WebLogics (11 GR 1 material) and FormsRuntime installed.

    I am logged in as root.

    I put all the environment variables based on the values in default.env.

    In addition, I updated TERM and ORACLE_TERM vt220. And TNS_ADMIN to the location of the sqlnet.ora and tnsnames.ora.

    I compiled a simple .pll containing only the following code:

    IS test PROCEDURE

    an INTEGER: = 0;

    BEGIN

    a: = 1;

    END;

    command:

    frmcmp_batch module = TESTLIBPLAIN.pll userid=myuser/mypassword@mydb module_type = LIBRARY output_file = TESTLIBPLAIN.plx compile_all = Yes = Yes = No. batch connection

    result: successful compilation. generated .plx.

    now, I'm trying to compile an another .pll containing just the following code:

    IS test PROCEDURE

    an INTEGER: = 0;

    BEGIN

    Select 1 in the doubles.

    END;

    command:

    frmcmp_batch module = TESTLIBSQL.pll userid=myuser/mypassword@mydb module_type = LIBRARY output_file = TESTLIBSQL.plx compile_all = Yes = Yes = No. batch connection

    result: error:

    "

    11 forms (form of the compiler) Version 11.1.1.3.0 (Production)

    Copyright (c) 1982, 2010, Oracle and/or its affiliates.  All rights reserved.

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

    With partitioning, OLAP and Data Mining options

    PL/SQL Version 11.1.0.7.0 (Production)

    Oracle V11.1.1.3.0 - Production procedure generator

    Oracle virtual graphics system Version 11.1.1.3.0 (Production)

    Oracle Multimedia Version 11.1.1.3.0 (Production)

    Oracle tools integration Version 11.1.1.2.0 (Production)

    Common tools Oracle area Version 11.1.1.3.0

    Oracle CORE Production 11.1.0.7.0

    Compile the library TESTLIB.

    Invalidate the body TEST procedure...

    Compilation of body TEST procedure...

    ERROR on line 5, column 1 0

    Ignored SQL statement

    Library TESTLIB closing...

    Errors on TEST:

    PL/SQL ERROR on line 5, column 1 0

    Ignored SQL statement

    Could not generate the library.

    FRM-30312: unable to compile the library.

    "

    the two libraries differ by having used SQl commands or not.

    I tried to compile some more complex .pll and .fmb containg the SQL code. I get similar error messages. The messages that I receive for each module are the same, I would get when compiling the module with FormBuilder 9i (Windows) without being connected to the database.

    So my first thought was, this frmcmp_batch is unable to connect to the database.

    BUT:

    From frmcmp_batch with an invalid user, password, or database name not existing (resp. not in tnsnames.ora), results in appropriate error messages (not found TNS, refusal to sign etc.).

    With myuser/mypassword@mydb I don' t get this kind of messages.

    sqlplus myuser/mypassword@mydb works.

    myuser can access all objects in the database mydb.

    mydb tnsping works.

    When I check v$ session on mydb while (!) frmcmp_batch is running, I see that it is in fact a db session, created from myuser: DB-User = myuser, terminal = myappsever, osuser = root, remote process = frmcmp_batch.  And State of the current session of the db is ACTIVE.

    As a result, frmcmp_batch fails with error messages that I expect that when there is no connection to the base, if it is connected!

    Any ideas what could be wrong with my setup?

    Help appreciated.

    Jean

    I found the solution. Seems, fmrcmp 11g can connect to, but compiles not on the 9i database. With the help of a Database 11 g resolves the problem :-)

  • Connect to the database that has lost access to a partition

    Hi all
    Suppose we have a partitioned table that look in some storage (physically) different. If the database lost access to one of them, what happens? The database can be loaded? If the user is unable to connect to the database, what can we do to solve the problem (because one of the characteristics of partitioning is availability)? If a user tries to get some data (by request), oracle will declare that a partition is not available and so the information may be incomplete?
    Best regards

    Interesting, above should work without error, as is explained in the following note:

    * How drop a Tablespace offline when the Partitions of a partitioned Table resides in [ID 267125.1] *.

    I wrote my previous post based on my memory of a similar situation several months ago, but I tested it again now:

    SQL> create tablespace part01 datafile 'C:\oracle\base\oradata\ORCL\part01.dbf' size 10M;
    
    Tablespace created.
    
    SQL> create tablespace part02 datafile 'C:\oracle\base\oradata\ORCL\part02.dbf' size 10M;
    
    Tablespace created.
    
    SQL> create table t1 (id number, text varchar2(100), constraint id_pk primary key (id))
        partition by range(id)
        (
        partition low values less than (1000) tablespace part01,
        partition high values less than (2000) tablespace part02
        );
    
    Table created.
    
    SQL> insert into t1 select rownum, 'hello' from dual connect by level <2000;
    
    1999 rows created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> shu immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning option
    
    del C:\oracle\base\oradata\ORCL\_part01.dbf
    sqlplus / as sysdba
    
    SQL*Plus: Release 11.2.0.3.0 Production on Sun Apr 21 10:36:35 2013
    
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    With the Partitioning option
    
    SQL> startup
    ORACLE instance started.
    
    Total System Global Area 2137886720 bytes
    Fixed Size                  2256912 bytes
    Variable Size            1392513008 bytes
    Database Buffers          738197504 bytes
    Redo Buffers                4919296 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 5 - see DBWR trace file
    ORA-01110: data file 5: 'C:\ORACLE\BASE\ORADATA\ORCL\PART01.DBF'
    
    SQL> alter database datafile 5 offline drop;
    
    Database altered.
    
    SQL> alter database open;
    
    Database altered.
    
    SQL> select count(*) from t1;
    select count(*) from t1
                         *
    ERROR at line 1:
    ORA-00376: file 5 cannot be read at this time
    ORA-01110: data file 5: 'C:\ORACLE\BASE\ORADATA\ORCL\PART01.DBF'
    
    SQL> select count(*) from t1 where id >= 1000;
    
      COUNT(*)
    ----------
          1000
    

    Note that, drop partition might work, based on the structure of the table / index, but I created an example where it does not work.

    
    SQL> alter table t1 drop partition low;
    alter table t1 drop partition low
    *
    ERROR at line 1:
    ORA-00376: file 5 cannot be read at this time
    ORA-01110: data file 5: 'C:\ORACLE\BASE\ORADATA\ORCL\PART01.DBF'
    
    SQL> create table t2 as select * from t1 where 1=2;
    
    Table created.
    
    SQL> alter table t1 exchange partition low with table t2;
    
    Table altered.
    
    SQL> select count(*) from t1;
    
      COUNT(*)
    ----------
          1000
    

Maybe you are looking for

  • Yosemite on a six year iMac

    Someone responsible iCloud drive, and now the Pages cannot be used.   I tried to upgrade to Capitan, but the old iMac it can't handle.   It will be possible to use the Yosemite and fix the hassle of Pages?

  • Satellite 1900-303 and wireless network?

    I just hand on one of these laptops. However, there is a switch that seems to have a Simbel wireless on the right side of the machine and a light symbol on the front that does not appear in the manual for this laptop wireless. Anyone know if this pho

  • "error code 43' when you try to move the iphoto folder.

    Hello When you try to transfer my photos on external hard drive folder, I get the message "the operation cannot be completed because one or more required elements could not be found. (Error code - 43) ".  I'm following the instructions from apple by

  • App Store said that I've updated 1

    App Store says - 1 software update available OS X update updated to El Capitan 10.11.2 I do - update - App Store says - restart your computer - I do - restart App Store says - updates available have changed - I'm doing the infinite loop - view detail

  • Help! Gap of memory!

    I bought a MacBook Pro opportunity retina / "renovated" a reputable, local, computer (for the Apple products only) store. It was sold as 16 GB of RAM. When I looI specs using "about this Mac", it reflects the 16 GB of RAM. When I search the device se