Please execute following SQL lines as "sys"; select 1048576+a.value+b.value pga_size from v$parameter a, v$parameter b where a.name = 'sort_area_size' and b.name = 'hash_area_size';
Setting the kernel.shmmax parameter does not reserve or allocate any shared memory. SHMMAX is a safeguard parameter that sets the upper limit for a process can allocate how much shared memory when requested. Please execute following commands as “root”; sysctl -w kernel.shmmax=2147483648 (2147483648 -> 2 GB) or modify /etc/sysctl.conf file sysctl -p (to apply it)
Please run the command as linux system user. # top at manual -> shift + f and then n (mem) or k (cpu) to highlight the column: press b to sort by time: press shift + t to see all CPUs: press 1
to get the different graphical output: press t Note: Type and press enter bold ones to run
For this case, You should mount the logic volume (lv) to related path. For example, you are using ftp server; Run this command after system is up: mount /dev/my_vg_ora/vol01 /srv/ftp/myhome/ (mount - logic volume path - mounted path)
On linux terminal; chown -R oracle:dba /dev/my_vg_ora/example01 chown -R oracle:dba /dev/mapper/my_vg_ora-example01 chmod 777 /dev/my_vg_ora chmod 660 /dev/my_vg_ora/* $ sqlplus Enter user-name: sys as sysdba @sys to add database file please execute under query as system database role SQL> ALTER TABLESPACE MYTABLESPACE ADD DATAFILE '/dev/my_vg_ora/example01' size 8000m reuse To execute the command, make sure the instance is open and the tablespace is online and also check database datafiles; SELECT * FROM dba_data_files;
select inst_id, sid, serial# from gv$session where username = 'TEST_ALPER'; (inst_id -> instance id, sid -> service id, serial# -> serial number) then use; alter system kill session '44,61808,@1'; (44 -> inst_id, 61808 -> service id, @1 -> serial number) finally drop user; drop user TEST_ALPER cascade;
In 11g: As you now that TOP keyword does not exist in 11g, but you can use rownum keyword to query top records. For example, you want to see top 10 salary records based on employees: Run that SQL in your editor's SQL window. Wrong one; SELECT * FROM ( SELECT employee_id, first_name, last_name, salary FROM employees ) WHERE rownum < 11 ORDER BY salary DESC; * ORDER BY runs at last so that it should be in sub query. Correct one; SELECT * FROM ( SELECT employee_id, first_name, last_name, salary FROM employees ORDER BY salary DESC ) WHERE rownum < 11;
In 12c: With 12c, you may use special syntax to see top records that is "FETCH" syntax.
SELECT employee_id, first_name, last_name, salary FROM employees ORDER BY salary DESC FETCH FIRST 10 ROWS ONLY; Also, you may disregard first 5 records inside 10 records. SELECT employee_id, first_name, last_name, salary FROM employees ORDER BY salary DESC OFFSET 5 ROWS FETCH NEXT 5 ROWS ONLY;
That's all. Bye :)
USB flash bellek format sorunu ortaya çıkarsa şu komutlarla flash belleğe format atılır. - CMD > diskpart > list disk > select disk 1 (genelde bu olur) > clean > create partition primary > select partition 1 > active > assign > formatla
Oracle uses service (oracle service) for connecting instance database by looking to sid. You can find which service names (sid) are using in database services with this command easily. Connection format: IP:LSTN_PORT/SID e.g. C:\Users\Alper> lsnrctl status
LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 11-EKI-2014 12:01:25 Copyright (c) 1991, 2010, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production Start Date 11-EKI-2014 11:49:12 Uptime 0 days 0 hr. 12 min. 16 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Default Service XE Listener Parameter File C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\listener.ora Listener Log File C:\oraclexe\app\oracle\diag\tnslsnr\Alper-PC\listener\alert\log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Alper-PC)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Alper-PC)(PORT=8080))(Presentation=HTTP)(Session=RAW)) Services Summary... Service "CLRExtProc" has 1 instance(s). Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... Service "XEXDB" has 1 instance(s). Instance "xe", status READY, has 1 handler(s) for this service... Service "xe" has 1 instance(s). Instance "xe", status READY, has 1 handler(s) for this service... The command completed successfully
By default /dev/shm is created to use half size of your server physical memory
If you see that MEMORY_TARGET not supported on this system while starting Oracle Database Instance in sqlplus window, please follow the instructions as below;
For this case, you should increase memory that using by Oracle as root user (e.g. size=10240m means 10 GB RAM) -> umount tmpfs -> mount -t tmpfs shmfs -o size=10240m /dev/shm If you encounter any error like that "the system is using already", (e.g. process id of /dev/shm is "5265") -> fuser -m /dev/shm or -> lsof /dev/shm -> kill 5265 Ref: http://blog.yannickjaquier.com/linux/linux-memory-usage.html