当前位置:网站首页>Oracle common SQL
Oracle common SQL
2022-07-02 03:33:00 【Tiantian code code Tiantian】
1. View servers IP
select UTL_INADDR.get_host_address() from dual;
2. Current session host IP
select sys_context('USERENV', 'IP_ADDRESS') from dual3. Server hostname
SELECT host_name from v$instance;
4. Current session hostname
select sys_context('USERENV', 'HOST') from dual;5. Query server platform information
SELECT * FROM DBA_REGISTRY_DATABASE;6. Query the memory size of the server
SELECT value / 1024 / 1024 / 1024 G
FROM v$osstat
where stat_name = 'PHYSICAL_MEMORY_BYTES'
7. View control information
select name from v$controlfile;
8. View data files
select file_name from dba_data_files;
9. view log file
select member from v$logfile;
10. View temporary files
select file_name from Dba_temp_files;11. see archive log
select name from v$archived_log12. Query current user
show user13. Query all tables of the current user
select unique tname from col;
-- perhaps
select * from user_tables;
-- perhaps
select * from tab;14. Check the database creation time
SELECT TO_CHAR(CREATED, 'YYYY-MM-DD,HH24:MI:SS'), LOG_MODE FROM V$DATABASE;15. View data objects
select owner, object_type, status, count(*) count#
from all_objects
group by owner, object_type, status;16. Check the number of connections for different users
select username, count(username)
from v$session
where username is not null
group by username;
边栏推荐
- MySQL connection query and subquery
- Detailed explanation of ThreadLocal
- VS2010插件NuGet
- "Analysis of 43 cases of MATLAB neural network": Chapter 41 implementation of customized neural network -- personalized modeling and Simulation of neural network
- West digital decided to raise the price of flash memory products immediately after the factory was polluted by materials
- Load different fonts in QML
- In depth analysis of C language - variable error prone knowledge points # dry goods inventory #
- Gradle foundation | customize the plug-in and upload it to jitpack
- Global and Chinese market of gynaecological health training manikin 2022-2028: Research Report on technology, participants, trends, market size and share
- h5中的页面显示隐藏执行事件
猜你喜欢

Discrimination between sap Hana, s/4hana and SAP BTP

In wechat applet, the externally introduced JS is used in xwml for judgment and calculation

Getting started with MQ

Failed to upgrade schema, error: “file does not exist

Generate random numbers that obey normal distribution

Retrofit's callback hell is really vulnerable in kotlin synergy mode
![[untitled] basic operation of raspberry pie (2)](/img/b4/cac22c1691181c1b09fe9d98963dbf.jpg)
[untitled] basic operation of raspberry pie (2)

How to do medium and long-term stocks, and what are the medium and long-term stock trading skills?

Analyse de 43 cas de réseaux neuronaux MATLAB: Chapitre 42 opérations parallèles et réseaux neuronaux - - opérations parallèles de réseaux neuronaux basées sur CPU / GPU

One of the future trends of SAP ui5: embrace typescript
随机推荐
Global and Chinese market of autotransfusion bags 2022-2028: Research Report on technology, participants, trends, market size and share
Work hard all day long and be alert at sunset
Account management of MySQL
Qt的网络连接方式
MySQL advanced (Advanced) SQL statement (II)
FFMpeg AVFrame 的概念.
Global and Chinese market of handheld ultrasonic scanners 2022-2028: Research Report on technology, participants, trends, market size and share
GSE104154_ scRNA-seq_ fibrotic MC_ bleomycin/normalized AM3
IPhone 6 plus is listed in Apple's "retro products" list
venn圖取交集
One of the future trends of SAP ui5: embrace typescript
Verilog state machine
[golang] leetcode intermediate bracket generation & Full Permutation
On redis (II) -- cluster version
流线线使用阻塞还是非阻塞
PY3, PIP appears when installing the library, warning: ignoring invalid distribution -ip
C # joint Halcon's experience of breaking away from Halcon environment and various error reporting solutions
MSI announced that its motherboard products will cancel all paper accessories
Kotlin基础学习 17
Global and Chinese market of bone adhesives 2022-2028: Research Report on technology, participants, trends, market size and share