I strongly recommend to use Smart Defrag tool instead of classical Windows Defragmenter tool.
Tuesday, 28 October 2014
Sunday, 26 October 2014
How to check NTFS file system in CMD?
Only you need to run this command.
e.g. chkntfs C:
C:\Windows\system32>chkntfs C:
The type of the file system is NTFS.
C: is not dirty.
e.g. chkntfs C:
C:\Windows\system32>chkntfs C:
The type of the file system is NTFS.
C: is not dirty.
How to define a tablespace in Windows?
Please execute the commands as "sys";
To define the tablespace:
SQL> CREATE TABLESPACE ALPER_DATA
DATAFILE 'C:\tablespaces\data_01.dbf' SIZE 128M
To alter the tablespace:
SQL> ALTER TABLESPACE ALPER_DATA ADD DATAFILE 'C:\tablespaces\data_new_02.dbf' size 128m;
To drop the datafile from the tablespace:
SQL> ALTER TABLESPACE ALPER_DATA DROP DATAFILE 'C:\tablespaces\data_new_02.dbf';
To drop the tablespace:
SQL> DROP TABLESPACE ALPER_DATA
INCLUDING CONTENTS AND DATAFILES;
To check tablespace's database files:
SQL> SELECT NAME, FILE#, STATUS FROM V$DATAFILE;
Used Oracle Version and OS: Oracle XE and Win7
To define the tablespace:
SQL> CREATE TABLESPACE ALPER_DATA
DATAFILE 'C:\tablespaces\data_01.dbf' SIZE 128M
To alter the tablespace:
SQL> ALTER TABLESPACE ALPER_DATA ADD DATAFILE 'C:\tablespaces\data_new_02.dbf' size 128m;
To drop the datafile from the tablespace:
SQL> ALTER TABLESPACE ALPER_DATA DROP DATAFILE 'C:\tablespaces\data_new_02.dbf';
To drop the tablespace:
SQL> DROP TABLESPACE ALPER_DATA
INCLUDING CONTENTS AND DATAFILES;
To check tablespace's database files:
SQL> SELECT NAME, FILE#, STATUS FROM V$DATAFILE;
Used Oracle Version and OS: Oracle XE and Win7
How to know hostname from IP in Command Prompt?
Press Windows button + R and press cmd then click "OK".
Then, write down "below command" and press enter
nbtstat -a <IP>
e.g. nbtstat -a 10.10.10.10
Then, write down "below command" and press enter
nbtstat -a <IP>
e.g. nbtstat -a 10.10.10.10
Wednesday, 22 October 2014
How to delete linux user?
# sudo userdel -r alper
-r -> Remove home directory and mail spool
-r -> Remove home directory and mail spool
Labels:
linux
Tuesday, 21 October 2014
How to run sql query in shell script?
Please add these codes into your .sh file then you can run .sh file
e.g.
ssh -q -T oracle@192.168.2.2 << EOF
sqlplus / as sysdba << EOFSQL
drop user ALPER_DB_USER cascade;
exit;
EOFSQL
EOF
e.g.
ssh -q -T oracle@192.168.2.2 << EOF
sqlplus / as sysdba << EOFSQL
drop user ALPER_DB_USER cascade;
exit;
EOFSQL
EOF
Labels:
linux,
oracle,
shell script,
sql
How to know file format description in CMD?
Please you run this command in CMD.
e.g. assoc .rar
.rar=WinRAR
e.g. assoc .txt
.txt=txtfile
e.g. assoc .rar
.rar=WinRAR
e.g. assoc .txt
.txt=txtfile
Monday, 20 October 2014
What are testing types and methods?
There are two test methods which are Black Box Testing and White Box Testing
Basically, there are two test types which are Functional and Non-functional.
For example, White & Black
Box (Mostly), Unit, Interface &
Usability, System, Regression and User Acceptance testing are Functional testing
types.
Likewise, Load & Performance,
Stress, Installation and Compatibility
& Migration testing are Non-functional testing types.
White
& Black Box Testing
White Box Testing (we know codes and are able to debug testing in
codes)
Black Box Testing (we do not know codes and act as a customer)
Black
Box Testing Types & Methods
- Equivalence partitioning (keyword is clustering)
- Boundary Value Analysis (keyword is looking boundary conditions)
- Cause Effect Graphing (keyword is causes -> intermediate nodes -> effects and reduced decision table)
Labels:
testing,
testing method,
testing type
What is the goal of testing?
The goal of testing is to reach minimum bug number and using time effectively
as person/day.
Labels:
testing
What are Verification and Validation in software world?
Verification is that the process of evaluating work-products (not the actual final product) of a development phase to determine whether they meet the specified requirements for that phase.
Activity of Verification: Reviews, Walkthroughs and Inspections
Question: Are we building the product right?
Validation is that the process of evaluating software during or at the end of the development process to determine whether it satisfies specified business requirements.
Activity of Validation: Testing
Question: Are we building the right product?
Ref: http://softwaretestingfundamentals.com/verification-vs-validation/
Activity of Verification: Reviews, Walkthroughs and Inspections
Question: Are we building the product right?
Validation is that the process of evaluating software during or at the end of the development process to determine whether it satisfies specified business requirements.
Activity of Validation: Testing
Question: Are we building the right product?
Ref: http://softwaretestingfundamentals.com/verification-vs-validation/
Labels:
testing,
validation,
verification
How to know SuSE release version?
Only run this command in terminal;
$ cat /etc/SuSE-release
or
$ cat -n /etc/SuSE-release
(-n) to see rows numbers as well
$ cat /etc/SuSE-release
or
$ cat -n /etc/SuSE-release
(-n) to see rows numbers as well
Sunday, 19 October 2014
How to define and drop temporary tablespace?
Please execute the commands as "sys";
SQL> CREATE TEMPORARY TABLESPACE ALPER_TS_TEMP TEMPFILE
'C:\tablespaces\data_01.dbf'
SIZE 8000M
AUTOEXTEND OFF
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
To alter the tablespace:
SQL> ALTER TABLESPACE ALPER_TS_TEMP ADD TEMPFILE 'C:\tablespaces\data_temp_new_02.dbf' size 128m;
To drop the tablespace:
SQL> DROP TABLESPACE ALPER_TS_TEMP INCLUDING CONTENTS AND DATAFILES;
Used Oracle Version and OS: Oracle XE and Win7
Ref: http://onlineappsdba.com/index.php/2008/02/08/tablespace-and-datafiles-in-oracle-database-back-to-basics/
SQL> CREATE TEMPORARY TABLESPACE ALPER_TS_TEMP TEMPFILE
'C:\tablespaces\data_01.dbf'
SIZE 8000M
AUTOEXTEND OFF
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
To alter the tablespace:
SQL> ALTER TABLESPACE ALPER_TS_TEMP ADD TEMPFILE 'C:\tablespaces\data_temp_new_02.dbf' size 128m;
To drop the tablespace:
SQL> DROP TABLESPACE ALPER_TS_TEMP INCLUDING CONTENTS AND DATAFILES;
Used Oracle Version and OS: Oracle XE and Win7
Ref: http://onlineappsdba.com/index.php/2008/02/08/tablespace-and-datafiles-in-oracle-database-back-to-basics/
Labels:
oracle,
temporary tablespace
How to run .sql file in sqlplus?
Press Windows button + R and press cmd then click "OK".
Write down "below command" and press enter
Full path approach
echo exit | sqlplus hr/hr @C:\sql\example.sql
Oracle path approach
echo exit | sqlplus hr/hr @?/example.sql
? -> $ORACLE_HOME
Example sql: select * from employees;
Used Oracle Version and OS: Oracle XE and Win7
Write down "below command" and press enter
Full path approach
echo exit | sqlplus hr/hr @C:\sql\example.sql
Oracle path approach
echo exit | sqlplus hr/hr @?/example.sql
? -> $ORACLE_HOME
Example sql: select * from employees;
Used Oracle Version and OS: Oracle XE and Win7
How to change a specified string inside all files by recursively?
Only run this command in terminal;
$ find . -type f -exec sed -i 's/'old'/'new'/g' {} \;
You can also use escape character to use '/'.
$ find . -type f -exec sed -i 's/'\\/old'/'\\/new'/g' {} \;
(\\ -> escape characters)
$ find . -type f -exec sed -i 's/'old'/'new'/g' {} \;
You can also use escape character to use '/'.
$ find . -type f -exec sed -i 's/'\\/old'/'\\/new'/g' {} \;
(\\ -> escape characters)
Labels:
linux
How to connect into RMAN tool in Windows?
Press Windows button + R and press cmd then click "OK".
Write down "rman" and press enter
Lastly run that command to connect environment.
RMAN> connect target /
connected to target database: XE (DBID=2732638794)
Write down "rman" and press enter
Lastly run that command to connect environment.
RMAN> connect target /
connected to target database: XE (DBID=2732638794)
Wednesday, 15 October 2014
Subscribe to:
Posts (Atom)