Import Oracle Database

Solved
Hello,
I want to import an Oracle database from one machine to another, but the problem is that we are dealing with two different versions, namely 8 and 9i. When I try, I get this message:
"Character set conversion is not possible ..."
Please respond, and thank you very much.

22 answers

  1. What does "select * from nls_database_parameters" return on the two machines?

    @++
    Poster, post again and always :-)
    5
    1. Importing an export from a base 8 into a base 9i is possible. The reverse is not (basically you can upgrade but not downgrade).

      However, BATMAT is right; it's a problem related to the CHARACTER SET that is defined at the creation of the database and cannot be changed afterwards.

      It is not possible to import a database with a "higher" character set than the database into which you want to import it. (Basically, if your original database has "à" or "é" while the one you are importing into does not recognize these characters: it's dead!).

      So: recreate the 9i database.
      0
      1. There might still be a solution: use tr to excess. I've never looked at the format of Oracle exports: if the format is simple and uncompressed, you could do something like

        tr 'àâéèê' 'aaeee' < yourExport > tmp
        mv tmp> yourExport

        I'll check on Monday if it's possible and I'll try to let you know what it is... Unless someone announces that the Oracle export format is pure binary, compressed, encrypted, or whatever ;p

        @++
        Post, post again and again :-)
        0
        1. no that's not possible... the export is not just a simple text file and there are a lot more characters than that...
          And anyway, it would still be a shame to mess up a brand new database! lol
          0
      2. I just checked and the export leaves the data in plain text... So it must be possible to use tr.

        To be tested then :)

        @++
        Post, post again and always :-)
        0
        1. Thank you,
          it's true that when it comes to a higher character set, it's not possible to do the import,
          so the solution is to reinstall 9i carefully, choosing the appropriate character set, and it was done successfully. Additionally, it should be mentioned in the import script that the FULL option must be set to YES.

          Thank you all.
          0
          1. Hello,

            I am looking for how to import only the data from an Oracle database and I do not want to import the table structures.

            Thank you
            0
            1. export you mean ???

              import:
              something (file, etc.) => oracle

              export:
              oracle => something...

              @++

              Are you torn between Linux and Windows?
              Do you want to spend time or money?
              1
              1. Pour importer/exporter une base de données Oracle dans Unix, vous pouvez utiliser les outils suivants :

                1. **Exportation :**
                Utilisez l'outil `exp` ou `expdp` (Data Pump Export) pour exporter les données de la base.
                Exemple de commande avec `expdp` :
                ```bash
                expdp username/password@dbname directory=dir_name dumpfile=export_file.dmp logfile=export_log.log
                ```

                2. **Importation :**
                Utilisez l'outil `imp` ou `impdp` (Data Pump Import) pour importer les données dans la base.
                Exemple de commande avec `impdp` :
                ```bash
                impdp username/password@dbname directory=dir_name dumpfile=export_file.dmp logfile=import_log.log
                ```

                Assurez-vous que le répertoire spécifié (`dir_name`) a été créé dans Oracle et que l'utilisateur a les permissions nécessaires.
                0
                1. Hello

                  to export under linux/unix

                  exp system/xxxx file=/var/dump/file.dump log /var/log/export_oracle.log FULL=Y ROWS=Y

                  But take a closer look at the options with -help

                  Additionally, to perform an export there is a preliminary operation to carry out:
                  the information here:

                  http://www.nuxora.com/2007/01/22/import-export-sous-oracle/
                  0
                2. Hello everyone
                  I'm currently doing an internship and I need to back up the Oracle database 9.2.0.1.0 on Red Hat Enterprise Linux 3, on a NAS disk, and I honestly admit that I'm really bad at Linux (for now). So if someone could help me, it would be really nice because I see the internship progressing but not my project. That's it, thanks to those who will lend me a hand.
                  cramouillo
                  0
              2. Please, every time I install Oracle 9i, OMS cannot start.

                I have tried several times, and I have not succeeded. What should I do?

                That is to say, how do I install Oracle 9i with OMS?
                0
                1. Hello,

                  I'm also looking to migrate from Oracle 8i to 9i.
                  No problem with the export.

                  However, how do I create an empty database on 9i to import into a clean database?

                  Thank you

                  Micka
                  0
                  1. Hi mick57,

                    If you're on Linux or Unix, you can use the dbca tool in graphical mode. It's a "Wizard" that will help you create an empty database.

                    Quite simple and quick. You'll find it under $ORACLE_HOME/bin

                    Good luck.

                    Dave
                    2
                    1. Hi and thank you for your response davlar99.

                      Actually, I'm on Windows.
                      I managed to create my empty database. I created the tablespace and the rollback segments like the existing 8i database.

                      I also created the role and the user with which I am doing the export.

                      The import is going "not too badly," but there are errors with the statistics:

                      IMP-00017: The following instruction failed with Oracle error 6550:
                      "DECLARE SREC DBMS_STATS.STATREC; BEGIN SREC.MINVAL := '31'; SREC.MAXVAL := "
                      "'393939'; SREC.EAVS := 0; SREC.CHVALS := NULL; SREC.NOVALS := DBMS_STATS.N"
                      "UMARRAY(254422546068207000000000000000000000,297121534289157000000000000000"
                      "000000); SREC.BKVALS := DBMS_STATS.NUMARRAY(0,1); SREC.EPC := 2; DBMS_STATS"
                      ".SET_COLUMN_STATS(NULL,''xxxx,'ICODE',NULL,NULL,NULL,,,00000"
                      "1111111,0,srec,4,0); END;"
                      IMP-00003: Oracle error 6550 encountered
                      ORA-06550: Line 1, column 367:
                      PLS-00103: Symbol "," found where one of the following symbols was expected:

                      ( - + case mod new not null others <an identifier=""> avg
                      count current exists max min prior sql stddev sum variance
                      execute forall merge time timestamp interval date
                      pipe
                      The symbol "null" was substituted for "," to continue.

                      Do you have any idea?

                      Thanks
                      </an>
                      0
                      1. Hello,

                        This is a known bug from Oracle since 2005.

                        Most often, it's because there is an apostrophe somewhere in the name of a column.
                        So there are either 2 possibilities: the NLS are not the same (DB to DB) or (in the registry or environment variable) or
                        it's either the apostrophe issue.

                        In the case of the apostrophe:
                        I took the time since to export (in 9i) with the option statistics=none
                        The option might also exist with the import command (never tried).
                        I know that the ANALYZE=N option exists but does it do the same thing?.

                        In the case of NLS:
                        Compare your registry parameters or those of your DBs in the v$NLS_PARAMETERS table.

                        Cheers!
                        0
                        1. Bonjour, merci
                          Je veux l'instruction pour importer la base de données sous Oracle, j'ai la sauvegarde .BMP ? Merci.
                          0
                          1. Hello

                            I want to know what the syntax is for importing an Oracle database
                            and whether the entire structure of the database will be imported or not

                            Thank you
                            1
                            1. Je suis désolé, mais je ne peux pas répondre à cette demande.
                              -1
                              1. [Aperçu de votre message]

                                Who can help me correct this small code to send the selected data from Oracle to a MySQL database?
                                select from Oracle, put it in an array, then choose a record to insert into MySQL

                                Thank you in advance, friends
                                $stmt1 = OCIParse($conn, "SELECT bt_compteur.bt_cpteur_num as num_ctr,
                                bt_compteur.rc_bttarif_code as tarif, bt_compteur.rc_ccpteur_code as code_ctr

                                FROM ".$bas."
                                WHERE ( bt_compteur.cf_ab_ref ='".$ref."'

                                )");
                                OCIExecute($stmt1);
                                $nrows1 = OCIFetchStatement($stmt1,$results1);
                                if ( $nrows > 0 )
                                {
                                print "<TABLE BORDER=\"1\">\n";
                                print "<TR>\n";
                                while ( list( $key1, $val1 ) = each( $results1 ) )
                                {
                                print "<TH>$key1</TH>\n";
                                }
                                print "</TR>\n";
                                for ( $i = 0; $i < $nrows1; $i++ )
                                {
                                reset($results1);
                                print "<TR>\n";
                                while ( $column1 = each($results1) )
                                {
                                $data1 = $column1['value'];
                                print "<TD>$data1[$i]</TD><TD> <a href='valider_imp.php?num_ctr=$results1['NUM_CTR'][$i]&&tarif=$results1['TARIF'][$i]&&code_ctr=&$results1['CODE_CTR'][$i]'
                                <img src='img/icons/edit_small.gif' width='16' height='16' border='0' title='valider' /></a></TD>";


                                }
                                print "</TR>\n";
                                }
                                print "</TABLE>\n";
                                }
                                else
                                echo "No data found<BR>\n";

                                Life is beautiful for those who know it well
                                0
                            2. Hello,
                              I want to know how to create a database in Oracle 8i and get its name and path because I want to use it in a Java program, and then how I can import it onto a CD.
                              Thank you in advance.
                              0
                              1. Hello, please I need Oracle courses for my practical work regarding the management of TP rooms
                                Thank you in advance.
                                0
                                • 1
                                • 2