I use oracle 11g in the free version. According to database classes with oracle, the free version does not allow you to create a database. You can create user and create tables. Based on this, how do I back up 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've seen 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;
Is this directory in the system file explorer or is it from sgbd?
to export:
expdp systen/pasword@db10g full=Y directory=dp dumpfile=DB10G.dmp logfile=expdpDB10G.log
Some comments:
I created a user named andre and, connected to this user, created the tables. I noticed that in the commands the user is system. If I do with the system user, do I copy my tables? Or do I have to be logged in to my user?
The password I registered for the installation is root. Soon I connect: connect andre/root