This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SET SERVEROUTPUT ON | |
| exec dbms_output.enable(1000000); | |
| DECLARE | |
| v_typ VARCHAR2(32); | |
| v_name VARCHAR2(32); | |
| v_constraint VARCHAR2(32); | |
| v_sql VARCHAR2(100); | |
| CURSOR c_objekte IS | |
| SELECT typ, NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SET SERVEROUTPUT ON | |
| exec dbms_output.enable(1000000); | |
| DECLARE | |
| v_typ VARCHAR2(32); | |
| v_name VARCHAR2(32); | |
| v_constraint VARCHAR2(32); | |
| v_sql VARCHAR2(100); | |
| CURSOR c_objekte IS | |
| SELECT typ, NAME |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SET SERVEROUTPUT ON | |
| exec dbms_output.enable(1000000); | |
| DECLARE | |
| v_typ VARCHAR2(32); | |
| v_name VARCHAR2(32); | |
| v_constraint VARCHAR2(32); | |
| v_sql VARCHAR2(100); | |
| CURSOR c_constraints IS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| net stop WMPNetworkSvc | |
| cd /d "%LOCALAPPDATA%\Microsoft\Media Player" | |
| del *.* /f /q /s | |
| rmdir "Art Cache" /s /q | |
| rmdir "HME" /s /q | |
| net start WMPNetworkSvc | |
| "%ProgramFiles(x86)%\Windows Media Player\Wmpconfig.exe" HMEOn | |
| "%ProgramFiles(x86)%\Windows Media Player\wmplayer.exe" /prefetch:1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## patching | |
| git format-patch -M origin/master | |
| git am < patchfilename.patch | |
| ##Mirror an repository | |
| for remote in `git branch -r | grep -v master `; \ | |
| do git checkout --track $remote ; done | |
| git push --all ssh://repo.git | |
| git push --tagsssh://repo.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| edit C:\Program Files\Tools\GIT\etc\gitconfig | |
| In section [http] | |
| proxy = http://jzieschang:password@<proxy-server>:8080 | |
| add "git config --global http.sslVerify false" | |
| on commandline: | |
| env GIT_SSL_NO_VERIFY=true git clone .... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #display system summary | |
| /etc/update-motd.d/50-landscape-sysinfo | |
| #JIRA log | |
| sudo tail /opt/atlassian/jira/logs/catalina.out -f | |
| #START JIRA | |
| sudo /opt/atlassian/jira/bin/start-jira.sh | |
| sudo /opt/atlassian/jira/bin/stop-jira.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT df.tablespace_name "Tablespace", | |
| totalusedspace "Used MB", | |
| (df.totalspace - tu.totalusedspace) "Free MB", | |
| df.totalspace "Total MB", | |
| ROUND(100 * ( (df.totalspace - tu.totalusedspace)/ df.totalspace)) "% Free" | |
| FROM | |
| (SELECT tablespace_name, | |
| ROUND(SUM(bytes) / 1048576) TotalSpace | |
| FROM dba_data_files | |
| GROUP BY tablespace_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT * FROM ( | |
| SELECT | |
| OWNER, SEGMENT_NAME, SEGMENT_TYPE, BYTES/1024/1024 SIZE_MB | |
| FROM | |
| DBA_SEGMENTS | |
| ORDER BY | |
| BYTES/1024/1024 DESC ) WHERE ROWNUM <= 20; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select * from v$session_longops | |
| where last_update_time > trunc(sysdate) | |
| order by start_time desc; | |
| select trunc(start_time), count(*) | |
| from v$session_longops | |
| group by trunc(start_time) | |
| order by trunc(start_time); |
OlderNewer