0
0

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 1 year has passed since last update.

Oracle_システムパラメータ関係

Last updated at Posted at 2021-05-07

DBとクライアントバージョン:

コマンドプロンプトでバージョンを確認:
C:\Users\user1>sqlplus -v
SQL*Plus: Release 12.2.0.1.0 Production

SQLでバージョンを確認:
SELECT * FROM v$version

サービス名とSID

SQLで確認:

-- サービス名(SERVICE_NAMES):デフォルト(通常変更しない)はDB_UNIQUE_NAME.DB_DOMAIN。
select name,DB_UNIQUE_NAME from v$database;
SELECT NAME, VALUE FROM V$PARAMETER WHERE NAME = 'db_domain'; 

-- システム識別子(SID):通常はインスタンス名と同じ
select instance_name from v$instance;

sqlplusで確認:

SQL> show parameter db_name
SQL> show parameter db_unique_name
SQL> show parameter db_domain
SQL> show parameter instance_name

文字をASCIIコードに変換する(ASCII)

SQL> SELECT ASCII('A') FROM dual;
ASCII('A')
出力:
65

テーブルに変な形のKあり、普通のKと区別するためにアスキーコード変換して、確認
select ID,ASCII(ID) from table1;
image.png

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?