Oracle Logic Dataguard Creating tables

Source: Internet
Author: User

IMPORTANT: Alter DATABASE guard none;

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

DBA User Build Table

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

Sql> CREATE TABLE Liang.testa as select * from Tab;

Table created.


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

DBA User under

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

Sql> Conn Liang/liang

Connected.

Sql> select * from tab;

Tname Tabtype Clusterid

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

TESTA TABLE

Sql> Select COUNT (*) from Tab;

COUNT (*)

----------

1

Sql> select * from tab;

Tname Tabtype Clusterid

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

TESTA TABLE

Sql> Select COUNT (*) from Testa;

COUNT (*)

----------

3693

sql> Delete testa;

Delete Testa

*

ERROR at line 1:

Ora-16224:database Guard is enabled

Sql> Conn/as SYSDBA

Connected.

Sql> ALTER DATABASE guard standby;

Database altered.

Sql> Conn Liang/liang;

Connected.

sql> Delete testa;

Delete Testa

*

ERROR at line 1:

Ora-16224:database Guard is enabled

Sql> ALTER DATABASE guard none;

Database altered.

sql> Delete testa;

3693 rows deleted.

Sql> commit;

Commit complete.

Sql> CREATE TABLE Testb as select * from Tab;

Table created.


This article is from the "Wheat Dock" blog, please make sure to keep this source http://yunlongzheng.blog.51cto.com/788996/1532523

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.