ORA-01506: missing or illegal database name












0














I connected as sysdba and tried below:





SQL> startup;

ORA-01506: missing or illegal database name

SQL>


I tried multiple scenarios changing the Oracle_home and path variables but no luck.



These are my env variables:



c:>echo %ORACLE_HOME%
C:oraclexeapporacleproduct11.2.0server

c:>echo %ORACLE_SID%
XE

c:>path
PATH=C:oraclexeapporacleproduct11.2.0server;C:oraclexeapporacleproduct
11.2.0serverbin;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:Wi
ndowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)ATI TechnologiesA
TI.ACECore-Static;C:instantclient-basic-windows.x64-11.2.0.4.0instantclient_1
1_2;C:UsersDINESHAppDataLocalProgramsPythonPython37Scripts;C:UsersDIN
ESHAppDataLocalProgramsPythonPython37


Also, I tried to restart the services manually but no luck.



The Content of initXE.ora is:



*.SPFILE='C:oraclexeapporacleproduct11.2.0serverdbs/spfileXE.ora',*.db_name='XE'


I tried:



SQL> create pfile='C:tempinitXE.ora' from spfile;

File created.

SQL> create spfile from pfile='C:tempinitXE.ora';

File created.

SQL> startup;
ORACLE instance started.

Total System Global Area 217157632 bytes
Fixed Size 2251776 bytes
Variable Size 159384576 bytes
Database Buffers 50331648 bytes
Redo Buffers 5189632 bytes
ORA-00205: error in identifying control file, check alert log for more info


Still getting an error.










share|improve this question
















bumped to the homepage by Community 4 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0














    I connected as sysdba and tried below:





    SQL> startup;

    ORA-01506: missing or illegal database name

    SQL>


    I tried multiple scenarios changing the Oracle_home and path variables but no luck.



    These are my env variables:



    c:>echo %ORACLE_HOME%
    C:oraclexeapporacleproduct11.2.0server

    c:>echo %ORACLE_SID%
    XE

    c:>path
    PATH=C:oraclexeapporacleproduct11.2.0server;C:oraclexeapporacleproduct
    11.2.0serverbin;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:Wi
    ndowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)ATI TechnologiesA
    TI.ACECore-Static;C:instantclient-basic-windows.x64-11.2.0.4.0instantclient_1
    1_2;C:UsersDINESHAppDataLocalProgramsPythonPython37Scripts;C:UsersDIN
    ESHAppDataLocalProgramsPythonPython37


    Also, I tried to restart the services manually but no luck.



    The Content of initXE.ora is:



    *.SPFILE='C:oraclexeapporacleproduct11.2.0serverdbs/spfileXE.ora',*.db_name='XE'


    I tried:



    SQL> create pfile='C:tempinitXE.ora' from spfile;

    File created.

    SQL> create spfile from pfile='C:tempinitXE.ora';

    File created.

    SQL> startup;
    ORACLE instance started.

    Total System Global Area 217157632 bytes
    Fixed Size 2251776 bytes
    Variable Size 159384576 bytes
    Database Buffers 50331648 bytes
    Redo Buffers 5189632 bytes
    ORA-00205: error in identifying control file, check alert log for more info


    Still getting an error.










    share|improve this question
















    bumped to the homepage by Community 4 hours ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0







      I connected as sysdba and tried below:





      SQL> startup;

      ORA-01506: missing or illegal database name

      SQL>


      I tried multiple scenarios changing the Oracle_home and path variables but no luck.



      These are my env variables:



      c:>echo %ORACLE_HOME%
      C:oraclexeapporacleproduct11.2.0server

      c:>echo %ORACLE_SID%
      XE

      c:>path
      PATH=C:oraclexeapporacleproduct11.2.0server;C:oraclexeapporacleproduct
      11.2.0serverbin;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:Wi
      ndowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)ATI TechnologiesA
      TI.ACECore-Static;C:instantclient-basic-windows.x64-11.2.0.4.0instantclient_1
      1_2;C:UsersDINESHAppDataLocalProgramsPythonPython37Scripts;C:UsersDIN
      ESHAppDataLocalProgramsPythonPython37


      Also, I tried to restart the services manually but no luck.



      The Content of initXE.ora is:



      *.SPFILE='C:oraclexeapporacleproduct11.2.0serverdbs/spfileXE.ora',*.db_name='XE'


      I tried:



      SQL> create pfile='C:tempinitXE.ora' from spfile;

      File created.

      SQL> create spfile from pfile='C:tempinitXE.ora';

      File created.

      SQL> startup;
      ORACLE instance started.

      Total System Global Area 217157632 bytes
      Fixed Size 2251776 bytes
      Variable Size 159384576 bytes
      Database Buffers 50331648 bytes
      Redo Buffers 5189632 bytes
      ORA-00205: error in identifying control file, check alert log for more info


      Still getting an error.










      share|improve this question















      I connected as sysdba and tried below:





      SQL> startup;

      ORA-01506: missing or illegal database name

      SQL>


      I tried multiple scenarios changing the Oracle_home and path variables but no luck.



      These are my env variables:



      c:>echo %ORACLE_HOME%
      C:oraclexeapporacleproduct11.2.0server

      c:>echo %ORACLE_SID%
      XE

      c:>path
      PATH=C:oraclexeapporacleproduct11.2.0server;C:oraclexeapporacleproduct
      11.2.0serverbin;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:Wi
      ndowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)ATI TechnologiesA
      TI.ACECore-Static;C:instantclient-basic-windows.x64-11.2.0.4.0instantclient_1
      1_2;C:UsersDINESHAppDataLocalProgramsPythonPython37Scripts;C:UsersDIN
      ESHAppDataLocalProgramsPythonPython37


      Also, I tried to restart the services manually but no luck.



      The Content of initXE.ora is:



      *.SPFILE='C:oraclexeapporacleproduct11.2.0serverdbs/spfileXE.ora',*.db_name='XE'


      I tried:



      SQL> create pfile='C:tempinitXE.ora' from spfile;

      File created.

      SQL> create spfile from pfile='C:tempinitXE.ora';

      File created.

      SQL> startup;
      ORACLE instance started.

      Total System Global Area 217157632 bytes
      Fixed Size 2251776 bytes
      Variable Size 159384576 bytes
      Database Buffers 50331648 bytes
      Redo Buffers 5189632 bytes
      ORA-00205: error in identifying control file, check alert log for more info


      Still getting an error.







      oracle






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 1 '18 at 16:19









      Paul White

      49.1k14260414




      49.1k14260414










      asked Nov 1 '18 at 14:39









      Dinesh KumarDinesh Kumar

      1




      1





      bumped to the homepage by Community 4 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 4 hours ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          $ oerr ora 1506
          01506, 00000, "missing or illegal database name"
          // *Cause: No db_name INIT.ORA aprameter was specified.
          // *Action: The database name must be given in the db_name
          // INIT.ORA parameter.


          Your ORACLE_SID is XE.
          When you issue startup, your process looks for a file %ORACLE_HOME%databasespfileXE.ora, or if it does not exist, then %ORACLE_HOME%databaseinitXE.ora.



          You get the above error when the db_name parameter is missing from them.



          You can edit initXE.ora with any text editor and add the missing parameter: *.db_name='XE'.
          spfile should not be edited directly, first create pfile from it:



          create pfile='C:tempinitXE.ora' from spfile;


          Add the missing parameter to `C:tempinitXE.ora', then create the spfile from it:



          create spfile from pfile='C:tempinitXE.ora';


          After that, try startup again.






          ORA-00205: error in identifying control file, check alert log for more info




          That is a completely different error, meaning the files defined in the parameter control_files are inaccessible.






          share|improve this answer























          • So, what could be the solution for accessing the control_files?
            – Dinesh Kumar
            Nov 1 '18 at 15:43



















          0














          control file parameter is missing in your initXE.ora file.



          Search for control file locations (control01.ctl and control02.ctl) in oracle base directory.create new ora file myXE.ora(any name is fine) with just two lines



          *.db_name='XE'
          *.control_files='C:some_directorycontrol01.ctl','C:some_directorycontrol02.ctl'


          next start database with pfile



          startup mount pfile='c:tempmyXE.ora


          If no errros from above step



          alter database open;
          create spfile from memory;


          If above steps did not resolves your issues meaning either control files missing or corrupted you need to recreate control files from alert logs.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "182"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f221539%2fora-01506-missing-or-illegal-database-name%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            $ oerr ora 1506
            01506, 00000, "missing or illegal database name"
            // *Cause: No db_name INIT.ORA aprameter was specified.
            // *Action: The database name must be given in the db_name
            // INIT.ORA parameter.


            Your ORACLE_SID is XE.
            When you issue startup, your process looks for a file %ORACLE_HOME%databasespfileXE.ora, or if it does not exist, then %ORACLE_HOME%databaseinitXE.ora.



            You get the above error when the db_name parameter is missing from them.



            You can edit initXE.ora with any text editor and add the missing parameter: *.db_name='XE'.
            spfile should not be edited directly, first create pfile from it:



            create pfile='C:tempinitXE.ora' from spfile;


            Add the missing parameter to `C:tempinitXE.ora', then create the spfile from it:



            create spfile from pfile='C:tempinitXE.ora';


            After that, try startup again.






            ORA-00205: error in identifying control file, check alert log for more info




            That is a completely different error, meaning the files defined in the parameter control_files are inaccessible.






            share|improve this answer























            • So, what could be the solution for accessing the control_files?
              – Dinesh Kumar
              Nov 1 '18 at 15:43
















            0














            $ oerr ora 1506
            01506, 00000, "missing or illegal database name"
            // *Cause: No db_name INIT.ORA aprameter was specified.
            // *Action: The database name must be given in the db_name
            // INIT.ORA parameter.


            Your ORACLE_SID is XE.
            When you issue startup, your process looks for a file %ORACLE_HOME%databasespfileXE.ora, or if it does not exist, then %ORACLE_HOME%databaseinitXE.ora.



            You get the above error when the db_name parameter is missing from them.



            You can edit initXE.ora with any text editor and add the missing parameter: *.db_name='XE'.
            spfile should not be edited directly, first create pfile from it:



            create pfile='C:tempinitXE.ora' from spfile;


            Add the missing parameter to `C:tempinitXE.ora', then create the spfile from it:



            create spfile from pfile='C:tempinitXE.ora';


            After that, try startup again.






            ORA-00205: error in identifying control file, check alert log for more info




            That is a completely different error, meaning the files defined in the parameter control_files are inaccessible.






            share|improve this answer























            • So, what could be the solution for accessing the control_files?
              – Dinesh Kumar
              Nov 1 '18 at 15:43














            0












            0








            0






            $ oerr ora 1506
            01506, 00000, "missing or illegal database name"
            // *Cause: No db_name INIT.ORA aprameter was specified.
            // *Action: The database name must be given in the db_name
            // INIT.ORA parameter.


            Your ORACLE_SID is XE.
            When you issue startup, your process looks for a file %ORACLE_HOME%databasespfileXE.ora, or if it does not exist, then %ORACLE_HOME%databaseinitXE.ora.



            You get the above error when the db_name parameter is missing from them.



            You can edit initXE.ora with any text editor and add the missing parameter: *.db_name='XE'.
            spfile should not be edited directly, first create pfile from it:



            create pfile='C:tempinitXE.ora' from spfile;


            Add the missing parameter to `C:tempinitXE.ora', then create the spfile from it:



            create spfile from pfile='C:tempinitXE.ora';


            After that, try startup again.






            ORA-00205: error in identifying control file, check alert log for more info




            That is a completely different error, meaning the files defined in the parameter control_files are inaccessible.






            share|improve this answer














            $ oerr ora 1506
            01506, 00000, "missing or illegal database name"
            // *Cause: No db_name INIT.ORA aprameter was specified.
            // *Action: The database name must be given in the db_name
            // INIT.ORA parameter.


            Your ORACLE_SID is XE.
            When you issue startup, your process looks for a file %ORACLE_HOME%databasespfileXE.ora, or if it does not exist, then %ORACLE_HOME%databaseinitXE.ora.



            You get the above error when the db_name parameter is missing from them.



            You can edit initXE.ora with any text editor and add the missing parameter: *.db_name='XE'.
            spfile should not be edited directly, first create pfile from it:



            create pfile='C:tempinitXE.ora' from spfile;


            Add the missing parameter to `C:tempinitXE.ora', then create the spfile from it:



            create spfile from pfile='C:tempinitXE.ora';


            After that, try startup again.






            ORA-00205: error in identifying control file, check alert log for more info




            That is a completely different error, meaning the files defined in the parameter control_files are inaccessible.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 1 '18 at 16:21









            Paul White

            49.1k14260414




            49.1k14260414










            answered Nov 1 '18 at 14:55









            Balazs PappBalazs Papp

            25.2k2930




            25.2k2930












            • So, what could be the solution for accessing the control_files?
              – Dinesh Kumar
              Nov 1 '18 at 15:43


















            • So, what could be the solution for accessing the control_files?
              – Dinesh Kumar
              Nov 1 '18 at 15:43
















            So, what could be the solution for accessing the control_files?
            – Dinesh Kumar
            Nov 1 '18 at 15:43




            So, what could be the solution for accessing the control_files?
            – Dinesh Kumar
            Nov 1 '18 at 15:43













            0














            control file parameter is missing in your initXE.ora file.



            Search for control file locations (control01.ctl and control02.ctl) in oracle base directory.create new ora file myXE.ora(any name is fine) with just two lines



            *.db_name='XE'
            *.control_files='C:some_directorycontrol01.ctl','C:some_directorycontrol02.ctl'


            next start database with pfile



            startup mount pfile='c:tempmyXE.ora


            If no errros from above step



            alter database open;
            create spfile from memory;


            If above steps did not resolves your issues meaning either control files missing or corrupted you need to recreate control files from alert logs.






            share|improve this answer




























              0














              control file parameter is missing in your initXE.ora file.



              Search for control file locations (control01.ctl and control02.ctl) in oracle base directory.create new ora file myXE.ora(any name is fine) with just two lines



              *.db_name='XE'
              *.control_files='C:some_directorycontrol01.ctl','C:some_directorycontrol02.ctl'


              next start database with pfile



              startup mount pfile='c:tempmyXE.ora


              If no errros from above step



              alter database open;
              create spfile from memory;


              If above steps did not resolves your issues meaning either control files missing or corrupted you need to recreate control files from alert logs.






              share|improve this answer


























                0












                0








                0






                control file parameter is missing in your initXE.ora file.



                Search for control file locations (control01.ctl and control02.ctl) in oracle base directory.create new ora file myXE.ora(any name is fine) with just two lines



                *.db_name='XE'
                *.control_files='C:some_directorycontrol01.ctl','C:some_directorycontrol02.ctl'


                next start database with pfile



                startup mount pfile='c:tempmyXE.ora


                If no errros from above step



                alter database open;
                create spfile from memory;


                If above steps did not resolves your issues meaning either control files missing or corrupted you need to recreate control files from alert logs.






                share|improve this answer














                control file parameter is missing in your initXE.ora file.



                Search for control file locations (control01.ctl and control02.ctl) in oracle base directory.create new ora file myXE.ora(any name is fine) with just two lines



                *.db_name='XE'
                *.control_files='C:some_directorycontrol01.ctl','C:some_directorycontrol02.ctl'


                next start database with pfile



                startup mount pfile='c:tempmyXE.ora


                If no errros from above step



                alter database open;
                create spfile from memory;


                If above steps did not resolves your issues meaning either control files missing or corrupted you need to recreate control files from alert logs.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 1 '18 at 19:38

























                answered Nov 1 '18 at 19:30









                SamSam

                372118




                372118






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Database Administrators Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f221539%2fora-01506-missing-or-illegal-database-name%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Liste der Baudenkmale in Friedland (Mecklenburg)

                    Single-Malt-Whisky

                    Czorneboh