0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【編集中】スキーマ間のExport⇒Importでトリガーのエラーが...

Last updated at Posted at 2019-05-15

TODO

  • 解決した情報を記載!!

トリガー関連操作

triggerControl.sql
-- トリガー名を確認
SELECT trigger_name, status FROM user_triggers;

-- トリガーの内容を確認
SELECT line, text FROM user_source WHERE name = "SchemaName"."TriggerName" ORDER BY name, line;

-- トリガーの有効化/無効化
ALTER TRIGGER "SchemaName"."TriggerName" ENABLE;
ALTER TRIGGER "SchemaName"."TriggerName" DISABLE;

-- 対策
-- トリガー定義を確認して、再作成すればいけるんだろうな。。。後で試してみる

参考サイト

◆インポート操作上のスキーマおよびデータベース・トリガーの影響
 https://docs.oracle.com/cd/E57425_01/121/SUTIL/GUID-B4E12380-C676-46E8-B7AB-D0107606DEB5.htm
  ※多分、これが原因なんだろうな。。。
◆Oracleデータベーストリガーのインポート
 https://oshiete.goo.ne.jp/qa/487169.html
  ※この質問の現象と近い...
◆OracleのIMPについて
 https://qa.itmedia.co.jp/qa6511589.html
◆oracleでトリガー名を確認する、内容を確認する、有効化と無効化
 http://te2u.hatenablog.jp/entry/2012/10/31/222302
◆ORACLE/TRIGGER編 - オラクルちょこっとリファレンス
 https://oracle-chokotto.com/ora_trigger.html
◆[データディクショナリ] トリガーの情報を取得する
 https://oracle.programmer-reference.com/datadictionary-triggers/

 

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?