TIPTOP系統管理--Createdb用法
发布日期:2021-11-14 04:12:06 浏览次数:2 分类:技术文章

本文共 1348 字,大约阅读时间需要 4 分钟。

TIPTOP安裝時,提供了Createdb的Shell給客戶使用,方便客戶在新增DB時,不需要一個一個再建立TIPTOP ERP所內建的Table Schema。
createdb總共有四個參數,可以建立下列四種DB:
當你在主機上輸入createdb時,就可以顯示下列說明文字:
</u1/topprod/tiptop/agl/4gl> createdb
Usage: /u1/topprod/tiptop/ora/bin/createdb dbname [1|2|3|4]
===========For ds schema has not been altered yet==============
Ex1 : /u1/topprod/tiptop/ora/bin/createdb ds1 1 -----> create database only
====================================================
===============For ds schema had been altered================
Ex2 : /u1/topprod/tiptop/ora/bin/createdb ds2 2 -----> create table schema(from ds user)
Ex3 : /u1/topprod/tiptop/ora/bin/createdb ds3 3 -----> create table schema with ds demo data
Ex4 : /u1/topprod/tiptop/ora/bin/createdb ds4 4 -----> create table schema with data(non-ds)
=====================================================
  1. createdb dbname 1
    建立一個空的DB,不含TIPTOP ERP的table Schema
    使用時機:為了要把之前所建立的dmp倒回系統,做系統測試或資料回復。
  2. createdb dbname 2
    以ds資料庫的table schema的架構建立一個資料庫,其中只會包含ds資料庫的table schema,與系統參數設定Table的值,其餘的Demo data都不會倒進來。
    使用時機:建立新的營運中心或是測試資料庫
  3. createdb dbname 3
    建立一個跟ds資料庫一模一樣的資料庫,除了包含TIPTOP ERP的TABLE Schema之外,還包含ds資料庫中的Demo資料。
    換句話說,就是複製一個跟DS一模一樣的資料庫。
    使用時機:一般常見是系統導入前,做測試之用,導入後很少會用到這選項。
  4. createdb dbname 4
    複製一個與現有資料庫一模一樣的資料庫,但不能是DS資料庫。
    使用時機:通常是為了測試系統或資料問題時,才會使用。
    但使用這個選項要特別注意,複製完後,必須進系統把參數裡的營運中心設定調整為新的營運中心代碼才行,否則會造成新DB資料拋到舊DB裡。
※關於哪些參數設定要改,下篇再說明※

转载地址:https://blog.csdn.net/meng_cheng_hi/article/details/49303567 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:TIPTOP系統工具(p_tool)
下一篇:TIPTOP系統管理-Createdb建立後須修改的參數資料

发表评论

最新留言

表示我来过!
[***.240.166.169]2024年04月01日 19时39分14秒