3
Use oracle 11g in the free version. According to the database lessons with oracle, the free version does not allow creating database. One can create user and create tables. Based on this, how do I backup these tables? Example of the initial command:
COPY FROM <db> TO <db> <opt> <tbl> {<cls>> } USING <sel>
<db> : string de banco de dados;
An example of a bank name would be: hr/hr@banco1
I have a hotel name table with the fields (id, nomeHotel, endereco, qtd_quarto).
Another way I saw on the internet is with expdp
:
Creating directory:
CREATE DIRECTORY dp AS '...\datapump';
GRANT EXP_FULL_DATABASE to system;
GRANT READ, WRITE ON DIRECTORY dp to system;
This directory is in the system file explorer or is sgbd?
to export:
expdp systen/pasword@db10g full=Y directory=dp dumpfile=DB10G.dmp logfile=expdpDB10G.log
Some remarks:
I created a user named Andre and, connected in this user, I created the tables. I noticed that in the commands the user is system. If I do with the user system, copy my tables? Or have to do logged in on my user?
The password I registered in the installation is root. Logo conecto: connect andre/root
this version has EXP? If you type EXP in the command line ORACLE responds?
– Reginaldo Rigo
@Reginaldo Rigo edited the question. I tested the referred command, but could not back up.
– André Nascimento
I don’t know what version this is. But you said you created the user Andre and created tables from that user, so this is a database. Type the command: Exp Andre/root@db 10g file=backup.dmp and see if he didn’t create the backup.dmp file in the folder you’re in.
– Reginaldo Rigo