forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
64 lines
11 KiB
HTML
64 lines
11 KiB
HTML
<a name="EN-US_TOPIC_0000001813598724"></a><a name="EN-US_TOPIC_0000001813598724"></a>
|
|
|
|
<h1 class="topictitle1">Database Management</h1>
|
|
<div id="body1584524312098"><p id="EN-US_TOPIC_0000001813598724__p10107145123117">A relational database contains a set of tables that can be operated based on the relational model of data. A relational database contains a group of data objects for storing, managing, and accessing data objects, including tables, views, indexes, and functions.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001813598724__section1966415102453"><h4 class="sectiontitle">Creating a Database</h4><ol id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264253_ol43338546191357"><li id="EN-US_TOPIC_0000001813598724__li710181734620"><span>In the <strong id="EN-US_TOPIC_0000001813598724__b74741418172413">Object Browser</strong> pane, right-click the <strong id="EN-US_TOPIC_0000001813598724__b67973239241">Databases</strong> group and select <strong id="EN-US_TOPIC_0000001813598724__b1778133018245">Create Database</strong>.</span><p><p id="EN-US_TOPIC_0000001813598724__p1220115238467"><span><img id="EN-US_TOPIC_0000001813598724__image887515236463" src="figure/en-us_image_0000001860319089.png"></span></p>
|
|
<p id="EN-US_TOPIC_0000001813598724__p1364973714231"></p>
|
|
</p></li><li id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264253_li54502602191357"><span>A <strong id="EN-US_TOPIC_0000001813598724__b4742292255">Create Database</strong> dialog box is displayed, prompting you to provide the information required for creating a database.</span><p><ul id="EN-US_TOPIC_0000001813598724__ul665913224719"><li id="EN-US_TOPIC_0000001813598724__li889018494718">Enter a database name.</li><li id="EN-US_TOPIC_0000001813598724__li106591925475">Select the required type of encoding character set from the <strong id="EN-US_TOPIC_0000001813598724__b1012813612618">Database Encoding</strong> drop-down list. The database supports <strong id="EN-US_TOPIC_0000001813598724__b13408164022612">UTF-8</strong>, <strong id="EN-US_TOPIC_0000001813598724__b6820548112613">GBK</strong>, <strong id="EN-US_TOPIC_0000001813598724__b13628185314262">SQL_ASCII</strong>, and <strong id="EN-US_TOPIC_0000001813598724__b1432218565261">LATIN1</strong> encoding character sets. Creating the database with other encoding character sets may result in erroneous operations.<div class="note" id="EN-US_TOPIC_0000001813598724__note658281464617"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001813598724__p19582191414465">This operation can be performed only when there is at least one active database.</p>
|
|
</div></div>
|
|
</li></ul>
|
|
</p></li><li id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264253_li4970961191557"><span>Select <strong id="EN-US_TOPIC_0000001813598724__b7862123393117">Connect to the DB</strong> and click <strong id="EN-US_TOPIC_0000001813598724__b15737036103117">OK</strong>.</span><p><p id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264253_p86148358314">The status bar displays the status of the completed operation.</p>
|
|
<p id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264253_p67060858191557">You can view the created database in the <strong id="EN-US_TOPIC_0000001813598724__b431815103213">Object Browser</strong>. The system-related schema in the server is automatically added to the new database.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001813598724__section17324144444314"><h4 class="sectiontitle">Connecting to the Database</h4><div class="p" id="EN-US_TOPIC_0000001813598724__p719916664520">In the <strong id="EN-US_TOPIC_0000001813598724__b14204845104115">Object Browser</strong> pane, right-click the database name and choose <strong id="EN-US_TOPIC_0000001813598724__b2199125512415">Connect to DB</strong>. The status bar displays the status of the completed operation.<div class="note" id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264796_note9290227172018"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264796_p1429115272202">This operation can be performed on a disconnected database.</p>
|
|
</div></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001813598724__section118585814210"><h4 class="sectiontitle">Renames a Database</h4><ol id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264765_ol52617682"><li id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264765_li1326316398230"><span>In the <strong id="EN-US_TOPIC_0000001813598724__b1030535118123">Object Browser</strong> pane, right-click the selected database and select <strong id="EN-US_TOPIC_0000001813598724__b6942556124">Rename Database</strong>.</span><p><div class="note" id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264765_note9290227172018"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264765_p1429115272202">This operation can be performed on a disconnected database.</p>
|
|
</div></div>
|
|
<p id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264765_p186378222577">The <strong id="EN-US_TOPIC_0000001813598724__b633921317131">Rename Database</strong> dialog box is displayed, prompting you to provide the information required for renaming the database.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264765_li544761915710"><span>Enter a new database name. Select the <strong id="EN-US_TOPIC_0000001813598724__b1421273741314">Connect to the DB</strong> check box and click <strong id="EN-US_TOPIC_0000001813598724__b1944974016132">OK</strong>.</span><p><p id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264765_p48165881">A confirmation dialog box is displayed, promoting you to confirm the renaming operation.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001813598724__section61561548194015"><h4 class="sectiontitle">Disconnecting from a Database</h4><p id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264463_p185292101458">You can disconnect all databases or a specified database under a connection by using the disconnection function.</p>
|
|
<ol id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264463_ol19137160"><li id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264463_li38016717"><span>In the <strong id="EN-US_TOPIC_0000001813598724__b19014581448921">Object Browser</strong> pane, right-click the selected the <strong id="EN-US_TOPIC_0000001813598724__b17253803038921">Databases</strong> group and select <strong id="EN-US_TOPIC_0000001813598724__b4182349488921">Disconnect All</strong>. This will disconnect all the databases under the connection.</span><p><p id="EN-US_TOPIC_0000001813598724__p136321916134211"><span><img id="EN-US_TOPIC_0000001813598724__image43691510420" src="figure/en-us_image_0000001860199253.png"></span></p>
|
|
<div class="p" id="EN-US_TOPIC_0000001813598724__p144271357192410"><div class="note" id="EN-US_TOPIC_0000001813598724__note33731314104212"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001813598724__p33731014154217">This operation can be performed only when there is at least one active database.</p>
|
|
</div></div>
|
|
</div>
|
|
<p class="figure" id="EN-US_TOPIC_0000001813598724__p15373111444218">A confirmation dialog box is displayed, prompting you to confirm the disconnection operation.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264849_li189699588235"><span>In the <strong id="EN-US_TOPIC_0000001813598724__b792201919276">Object Browser</strong> pane, right-click the selected database name and select <strong id="EN-US_TOPIC_0000001813598724__b992331972711">Disconnect from DB</strong>.</span><p><p id="EN-US_TOPIC_0000001813598724__p17957351124212"><span><img id="EN-US_TOPIC_0000001813598724__image1714235044211" src="figure/en-us_image_0000001813439392.png"></span></p>
|
|
<div class="p" id="EN-US_TOPIC_0000001813598724__p185514832516"><div class="note" id="EN-US_TOPIC_0000001813598724__note18581204944217"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001813598724__p19581134918426">This operation can be performed only on the primary database.</p>
|
|
</div></div>
|
|
</div>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001813598724__section1896932163717"><h4 class="sectiontitle">Dropping a Database</h4><p id="EN-US_TOPIC_0000001813598724__p183031942173911">In the <strong id="EN-US_TOPIC_0000001813598724__b1198118306285">Object Browser</strong> pane, right-click the selected database and select <strong id="EN-US_TOPIC_0000001813598724__b9485939152819">Drop Database</strong>. A confirmation dialog box is displayed, asking you whether to delete the database.</p>
|
|
<p id="EN-US_TOPIC_0000001813598724__p115178591390"><span><img id="EN-US_TOPIC_0000001813598724__image1065793111403" src="figure/en-us_image_0000001813599180.png"></span></p>
|
|
<div class="p" id="EN-US_TOPIC_0000001813598724__p184102581263"><div class="note" id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264752_note9290227172018"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264752_p1429115272202">This operation can be performed on a disconnected database.</p>
|
|
</div></div>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001813598724__section443822715352"><h4 class="sectiontitle">Viewing Data Properties</h4><p id="EN-US_TOPIC_0000001813598724__p956314471368">Right-click the selected database and select <strong id="EN-US_TOPIC_0000001813598724__b52801720103016">Properties</strong>. The status bar displays the status of the completed operation.</p>
|
|
<p id="EN-US_TOPIC_0000001813598724__p189240531367"><span><img id="EN-US_TOPIC_0000001813598724__image27360953712" src="figure/en-us_image_0000001813599176.png"></span></p>
|
|
<p id="EN-US_TOPIC_0000001813598724__p1317274119271"></p>
|
|
<p id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264208_p202202033288">The properties of the selected database are displayed.</p>
|
|
<p id="EN-US_TOPIC_0000001813598724__p19797154513610"><span><img id="EN-US_TOPIC_0000001813598724__image1148182617373" src="figure/en-us_image_0000001860199237.png" width="518.7" height="181.43859999999998" title="Click to enlarge" class="imgResize"></span></p>
|
|
<p id="EN-US_TOPIC_0000001813598724__p569715102813"></p>
|
|
<div class="note" id="EN-US_TOPIC_0000001813598724__en-us_topic_0185264208_note13220537280"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001813598724__ul931815347365"><li id="EN-US_TOPIC_0000001813598724__li0318834133619">This operation can be performed only when there is at least one active database.</li><li id="EN-US_TOPIC_0000001813598724__li113409361364">If the property of an opened database is modified, then refresh and open the properties of the database again to view the updated information on the same opened window.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="DWS_DS_012.html">Database Management</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |