# tar -czvf mytarfile.tar.gz mydirwhich will tar and compress the directory "mydir" with its contents.
To extract and untar a .tar.gz file in one command, use the following syntax:
# tar -zxvf mytarfile.tar.gz
Minimalistic Oracle contains a collection of practical examples from my encounters with Oracle technologies. When relevant, I also write about other technologies, like Linux or PostgreSQL. Many of the posts starts with "how to" since they derive directly from my own personal experience. My goal is to provide simple examples, so that they can be easily adapted to other situations.
# tar -czvf mytarfile.tar.gz mydirwhich will tar and compress the directory "mydir" with its contents.
# tar -zxvf mytarfile.tar.gz
LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = myserver.mydomain.com)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) ) inbound_connect_timeout_listener=3
LSNRCTL> show inbound_connect_timeout LISTENER parameter "inbound_connect_timeout" set to 3 LSNRCTL>Verify that logging is set and the location of the logfile:
LSNRCTL> show log_file Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myserver.mydomain.com)(PORT=1521))) LISTENER parameter "log_file" set to /u01/oracle/diag/tnslsnr/myserver/listener/alert/log.xml The command completed successfully LSNRCTL> show log_status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=myserver.mydomain.com)(PORT=1521))) LISTENER parameter "log_status" set to ON The command completed successfully
[vk@myclient]$ time telnet myserver.mydomain.com 1521 Trying 192.168.0.122... Connected to myserver.mydomain.com Escape character is '^]'. Connection closed by foreign host. real 0m3.010s user 0m0.001s sys 0m0.001s
<msg time='2017-01-23T11:09:12.118+01:00' org_id='oracle' comp_id='tnslsnr' type='UNKNOWN' level='16' host_id='myserver.mydomain.com' host_addr='192.168.0.122'> <txt>23-JAN-2017 11:09:12 * <unknown connect data> * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.25)(PORT=49264)) * establish * <unknown sid> * 12525 </txt> </msg> <msg time='2017-01-23T11:09:12.119+01:00' org_id='oracle' comp_id='tnslsnr' type='UNKNOWN' level='16' host_id='myserver.mydomain.com' host_addr='192.168.0.122'> <txt>TNS-12525: TNS:listener has not received client's request in time allowed TNS-12535: TNS:operation timed out TNS-12606: TNS: Application timeout occurred </txt> </msg>
// *Cause: An attempt was made to exceed the maximum number of // concurrent sessions allowed by the SESSION_PER_USER clause // of the user profile. // *Action: End one or more concurrent sessions or ask the database // administrator to increase the SESSION_PER_USER limit of // the user profile.
alter profile general_users LIMIT SESSIONS_PER_USER <num> | default | unlimited;
select d.username,account_status from dba_users_with_defpwd d inner join dba_users u on d.username = u.username where u.account_status = 'OPEN'; exitOutput in my case:
USERNAME ACCOUNT_STATUS ---------------------------------------- -------------------- CTXSYS OPEN MGDSYS OPEN
select t.file#,ts#,status,t.name "temp file name",n.name "tablespace name", n.bigfile,t.bytes/1024/1024 "Size MB" from v$tempfile t join v$tablespace n using(ts#);
FILE# | TS# | STATUS | temp file name | tablespace name | BIGFILE | Size MB |
---|---|---|---|---|---|---|
1 | 3 | ONLINE | /u02/oradata/proddb01/temp01.dbf | TEMP | YES | 256 |
2 | 66 | ONLINE | /u02/oradata/proddb01/user_temp.dbf | USER_TEMP | YES | 256 |
3 | 70 | ONLINE | /u02/oradata/proddb01/temp_d1u_01.dbf | BATCH_TEMP | YES | 256 |
[root@myserver:/] date Wed Jul 12 10:11:36 CEST 2017
[root@myserver:/] date 010510152017 Thu Jan 5 10:15:31 CET 2017
[root@myserver:/] date Thu Jan 5 10:16:27 CET 2017
[root@myserver:/] lssrc -a|grep ntpd xntpd tcpip inoperative
[root@myserver:/] startsrc -s xntpd 0513-059 The xntpd Subsystem has been started. Subsystem PID is 11141174.
[root@myserver:/] stopsrc -s xntpd