Root user is the most authoritative user on linux operating systems. You can take measure for security with disable root ssh. You can connect to server with other users. Edit sshd_config vi /etc/ssh/sshd_config #LoginGraceTime 2m #PermitRootLogin yes #StrictModes yes Note : “PermitRootLogin yes” is default value. This value allows ssh root login You have to…
Tag: System Administration
Oracle DbLink With Odbc Connection From Oracle to MsSQL Server With FreeTDS
I will use Oracle 11g R2 database and SQL Server 2008 R2 on this example. If you want to connect from Oracle to SQL Server, you can use freeTDS connection library on Oracle Linux systems. If we use Windows Server for Oracle database, we can use direct Windows ODBC Driver Manager. On the other hand,…
How to Install .Net Framework 3.5 on Windows Server 2012
You have to insert Windows Server 2012 DVD into DVD Reader. After you can install .Net FrameWork 3.5. Installation Steps insert Windows Server 2012 DVD or iso to D Drive. Open Add Roles and Features Wizard From Server Manager. Select .NET Framework 3.5 Features. Select Specify an alternate source path and select path that is…
Copy Files Without Overwrite Existing Files With xcopy Command on Windows
You can use xcopy command for copy and move files. Below command does that it copy files and paste to new destination without overwrite existing files. xcopy C:\> xcopy D:\source_dest E:\target_dest /E /D Note : /E parameter make that it copy files with subfolders Note : /D parameter make that it copy files without overwrite
Vi Editor on Linux
Vi editor very useful text editor on linux systems. Below commands most use commands. Vi Editor Commands i > insert ESC + q! > exit without save ESC + wq! > exit with save ESC + w! > only save /searchtext > search to down ?searchtext < search to up n > next text of…
File Merge With MsDos in Windows
If you want to merge files into one file. You can use copy command. For example, you have a directory as name testdir and 10 csv files in testdir. Open cmd prompt. C:> copy file1.csv+file2.csv+file3.csv commonfile.csv
Python Commands and Functions
Take value from user. input(“Enter a number : “) raw_input(“Enter a character : “) Counters range(100) # write from 0 to 100 range(100,200) # write from 100 to 200 range(100,200,2) # write from 100 to 200 as 2 by 2 len(“Fatih”) # character count result 5 File and Directory Operations listdir(“/home”/) # list all file…
Mail Send With Python
Mail Send Function | File name : sender.py import string import smtplib from email.mime.text import MIMEText def mailSend(subject,content): mailserver = “192.168.5.2” # Mail Server IP Address mail = MIMEText(content) mail[“From”] = “fromaddress@example.com” mail[“To”] = “toaddress@example.com” mail[“Subject”] = subject gonder = smtplib.SMTP(mailserver) gonder.sendmail(mailfrom,mailto,mail.as_string()) gonder.quit() Notification Example for Disk Status Check | File name : diskcheck.py from…
Python Programing Language Structure
Python supports multiple programming paradigms, including object-oriented, imperative and functional programming styles. It features a fully dynamic type system and automatic memory management, similar to that of Scheme, Ruby, Perl, and Tcl. Like other dynamic languages, Python is often used as a scripting language, but is also used in a wide range of non-scripting contexts….
Copy Backup File from ASM to Local Disk
If you want to migrate backup or archivelog files from asm disks to local disk, you can use below command. But you have to create a directory to migrate backup and this directory owner have to be grid user. Copy File Command [grid ~]# asmcmd ASMCMD> cd FRA/backups ASMCMD> cp mynewbackupname.bck /localdiskpath/mybackup.bck