Friday, 1 January 2016

Window-7 Commands

1. Start Run
Win+R, then type cmd, then press enterStart Command Prompt. Starts Traditional Run Window then Command Prompt, or any other run command
Win, then type cmd, then pressCtrl+Shift+EnterStart Command Prompt as Administrator. Start New Windows Search, then Command Prompt, or any other application
▲ up
minus2. Control Panel Program Shortcuts
controlControl Panel
control desktopDisplay Properties (Personalization)
control colorPersonalization - Color and Appearance
control foldersFolders Properties
control keyboardKeyboard Properties
control mouseMouse Properties
control netconnectionsNetwork Properties
control printersPrinters Folders
control userpasswordsManager current User Account
control userpasswords2Manager all User Accounts
control updateWindows Update
control admintoolsAdministrative Tools
control schedtasksScheduled Tasks
appwiz.cplApplication Wizard (Program and Features)
powercfg.cplPower Configuration
timedate.cplDate and Time Properties
desk.cplDisplay - Screen Resolution
intl.cplRegional Settings (International)
mmsys.cplSound Properties (Multimedia System Settings)
inetcpl.cplInternet Properties (Internet Control Panel)
wscui.cplSecurity Center (Windows Security Center UI)
sysdm.cplSystem Properties
utilmanEase of Access Utility Manager
firewall.cplWindows Firewall
▲ up
minus3. Commonly used Windows Tools
explorerWindows Explorer
c:Explorer C: Drive
regeditRegistry Editor
services.mscWindows Services (local)
taskmgrTask Manager
msconfigSystem Configuration Utility
mstscRemote Desktop (Microsoft Terminal Services)
logoffLog Off Windows (without confirmation!)
shutdownShuts Down Windows (don't try unless you are ready to shutdown)
calcCalculator
cmdCommand Prompt
notepadNotepad
▲ up
minus4. Microsoft System Configurations
Microsoft System Configurations
devmgmt.mscDevice Management
eventvwr.mscEvent Viewer
compmgmt.mscComputer Management including System Tools, Storage, Services and Appliations
diskmgmt.mscDisk Partition Manager
dcomcnfgComponent Services (Detailed Component Configuration)
gpedit.mscGroup Policy Editor
secpol.mscLocal Security Policy Settings
lusrmgr.mscLocal User and Groups
perfmon.mscPerformance Monitor
fsmgmt.mscShared Folders (File Sharing Management)
▲ up
minus5. Other Windows Tools
shrpubwCreate a shared folder Wizard
dxdiagDirect X Troubleshooter
cleanmgrClean Manager - Disk Cleanup Utility
clipbrdClipboard Viewer
msiexecWindows Installer Details
magnifyWindows Magnifier
oskOn Screen Keyboard
msinfo32System Information
sndvolVolume Control
winverWindows Version ( shows your windows version )
compCompare Files
ftpMS-Dos FTP
labelVolume Serial Number for C:
fsquirtBluetooth Transfer Wizard
verifierDriver Verifier Utility
migwizMigration Wizard - Files and Settings Transfer Tool
sigverifFile Signature Verification Tool
fontsFonts
joy.cplGame Controllers
mrtMalicious Software Removal Tool
eudceditPrivate Characters Editor
▲ up
minus6. Applications (if installed)
acrobatAdobe Acrobat ( if installed )
photoshopAdobe Photoshop ( if installed )
ccleanerCcleaner ( if installed )
chromeChrome ( if installed )
excelMicrosoft Excel ( if installed )
accessMicrosoft Access ( if installed )
powerpntMicrosoft Powerpoint
winwordMicrosoft Word ( if installed )
wmplayerWindows Media Player
writeWordpad
mspaintPaint
▲ up
minus7. IP Config Commands (leave Dos Windows open)
ipconfig /allIP Configuration (Display Connection Configuration)
ipconfig /displaydnsIP Configuration (Display DNS Cache Contents)
ipconfig /flushdnsIP Configuration (Delete DNS Cache Contents)
ipconfig /releaseIP Configuration (Release All Connections)
ipconfig /renewIP Configuration (Renew All Connections)
ipconfig /registerdnsIP Configuration (Refreshes DHCP & Re-Registers DNS)
ipconfig /showclassidIP Configuration (Display DHCP Class ID)
ipconfig /setclassidIP Configuration (Modifies DHCP Class ID)
▲ up

minus8. System File Checker Utility
sfc /scannowSystem File Checker Utility ( Scan Immediately )
sfc /scanonceSystem File Checker Utility ( Scan Once At Next Boot )
sfc /scanbootSystem File Checker Utility ( Scan On Every Boot )
sfc /revertSystem File Checker Utility ( Return to Default Settings)
sfc /purgecacheSystem File Checker Utility ( Purge File Cache )
sfc /cachesize=xSystem File Checker Utility ( Set Cache Size to Size x )

Practise-- Oracle

CREATE OR REPLACE PROCEDURE raise_emp_salary (column_value NUMBER,
emp_column VARCHAR2, amount NUMBER) IS
v_column VARCHAR2(30);
sql_stmt VARCHAR2(200);
BEGIN
-- determine if a valid column name has been given as input
SELECT COLUMN_NAME INTO v_column FROM USER_TAB_COLS
WHERE TABLE_NAME = 'EMPLOYEES' AND COLUMN_NAME = emp_column;
sql_stmt := 'UPDATE employees SET salary = salary + :1 WHERE '
|| v_column || ' = :2';
EXECUTE IMMEDIATE sql_stmt USING amount, column_value;
IF SQL%ROWCOUNT > 0 THEN
DBMS_OUTPUT.PUT_LINE('Salaries have been updated for: ' || emp_column
|| ' = ' || column_value);
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE ('Invalid Column: ' || emp_column);
END raise_emp_salary;
/

=====================================================================================
DECLARE
plsql_block VARCHAR2(500);
BEGIN
-- note the semi-colons (;) inside the quotes '...'
plsql_block := 'BEGIN raise_emp_salary(:cvalue, :cname, :amt); END;';
EXECUTE IMMEDIATE plsql_block USING 110, 'DEPARTMENT_ID', 10;
EXECUTE IMMEDIATE 'BEGIN raise_emp_salary(:cvalue, :cname, :amt); END;'
USING 112, 'EMPLOYEE_ID', 10;
END;
/

================================================================================

DECLARE
sql_stmt VARCHAR2(200);
v_column VARCHAR2(30) := 'DEPARTMENT_ID';
dept_id NUMBER(4) := 46;
dept_name VARCHAR2(30) := 'Special Projects';
mgr_id NUMBER(6) := 200;
loc_id NUMBER(4) := 1700;
BEGIN
-- note that there is no semi-colon (;) inside the quotes '...'
EXECUTE IMMEDIATE 'CREATE TABLE bonus (id NUMBER, amt NUMBER)';
sql_stmt := 'INSERT INTO departments VALUES (:1, :2, :3, :4)';
EXECUTE IMMEDIATE sql_stmt USING dept_id, dept_name, mgr_id, loc_id;
EXECUTE IMMEDIATE 'DELETE FROM departments WHERE ' || v_column || ' = :num'
USING dept_id;
EXECUTE IMMEDIATE 'ALTER SESSION SET SQL_TRACE TRUE';
EXECUTE IMMEDIATE 'DROP TABLE bonus';
END;
/
================================================================
select dbms_metadata.get_ddl('PACKAGE_BODY','PACKAGE_NAME') from dual;

select dbms_metadata.get_ddl('PACKAGE_SPEC','PACKAGE_NAME') from dual;

=================================================================