Check the version number (database, operating system) oracle check the version number

check oracle version number

方法一:sqlplus / as sysdba(sqlplus user/password@ssid)

Method Two: SQL>  the SELECT * from v $ Version

Method three: SQL>  the SELECT * from product_component_version ;

方法四:SQL>select vesion from v$instance;

 

Check the Linux operating system version

Viewing the kernel version command

1, $  CAT / proc / Version  (Linux operating system to view the current version information)
      Role / proc directory
2, $ uname -a    (see the current version of Linux operating system kernel information)
     The role of the uname command
 
2. Check the Linux version:
1) $ lsb_release -a  , you can list all the version information // Note: This command applies to all of linux, including Redhat, SuSE, Debian and other distributions.
2) $ CAT / etc / Issue (see the current version of Linux operating system release information)
3) $ CAT / etc / RedHat-Release (see the current version of Linux operating system release information)
4)$file /sbin/init
 
View Linux hardware configuration information:
# Cat / proc / cpuinfo (Linux view cpu-related information, including the type, frequency, core information, etc.)
#dmidecode | grep "Product Name" // View machine information
#dmesg | grep -i eth // View card information
#cat / proc / meminfo // Check memory information
 
 
Some can also be used in ... FreeBSD
  # uname -a # View kernel / operating system / CPU information
  #cat / proc / version # Viewing the kernel
  # cat / etc / issue # check the OS version
  # head -n 1 / etc / issue # check the OS version
  # cat / proc / cpuinfo # View CPU information
  # hostname # View the computer name
  # lspci -tv # list all PCI devices
  # lsusb -tv # lists all USB devices
  # lsmod # listed loadable kernel modules
  # env # viewing environment variable resource
  # free -m # to view memory usage and the amount of swap space
  # df -h # see how each partition usage
  # du -sh <directory name> # View the specified directory size
  # grep MemTotal / proc / meminfo # view the amount of memory
  # Grep MemFree / proc / meminfo # view the amount of free memory
  # uptime # View system uptime, number of users, load
  # cat / proc / loadavg # View system load disk and partition
  # mount | column -t # view the partition mounted state
  # fdisk -l # View all partition
  # swapon -s # View all swap partitions
  # hdparm -i / dev / hda # View disk parameters (only for IDE devices)
  # dmesg | grep IDE # view when you start the IDE device detects network conditions
  # ifconfig # View all the properties of the network interface
  # iptables -L # View firewall settings
  # route -n # View the routing table
  # netstat -lntp # View all listening ports
  # netstat -antp # view all established connections
  # netstat -s # View network statistics process
  # Ps -ef # view all processes
  # top # display real-time status of the user process
  # w # view active user
  # id <user name> # Display the user information
  # last # view the user login log
  # cut -d: -f1 / etc / View all users of the system passwd #
  # cut -d: -f1 / etc / group # group to see all system
  # crontab -l # to view the current user's scheduled tasks service
  # chkconfig -list # lists all system services
  # chkconfig -list | grep list all start on # of system service program
  # rpm -qa # view all installed packages
  cat / proc / cpuinfo: View CPU parameters
  cat / proc / partitions: Check the hard disk and partition
  cat / proc / meminfo: View memory information
  cat / proc / version: Check version, similar to the uname -r
  cat / proc / ioports: View equipment io port
  cat / proc / interrupts: View interrupts
  cat / proc / pci: pci device View information
  cat / proc / swaps: View information for all swap partitions

Method Two: SQL>  the SELECT * from v $ Version

Method three: SQL>  the SELECT * from product_component_version ;

方法四:SQL>select vesion from v$instance;

 

Check the Linux operating system version

Viewing the kernel version command

1, $  CAT / proc / Version  (Linux operating system to view the current version information)
      Role / proc directory
2, $ uname -a    (see the current version of Linux operating system kernel information)
     The role of the uname command
 
2. Check the Linux version:
1) $ lsb_release -a  , you can list all the version information // Note: This command applies to all of linux, including Redhat, SuSE, Debian and other distributions.
2) $ CAT / etc / Issue (see the current version of Linux operating system release information)
3) $ CAT / etc / RedHat-Release (see the current version of Linux operating system release information)
4)$file /sbin/init
 
View Linux hardware configuration information:
# Cat / proc / cpuinfo (Linux view cpu-related information, including the type, frequency, core information, etc.)
#dmidecode | grep "Product Name" // View machine information
#dmesg | grep -i eth // View card information
#cat / proc / meminfo // Check memory information
 
 
Some can also be used in ... FreeBSD
  # uname -a # View kernel / operating system / CPU information
  #cat / proc / version # Viewing the kernel
  # cat / etc / issue # check the OS version
  # head -n 1 / etc / issue # check the OS version
  # cat / proc / cpuinfo # View CPU information
  # hostname # View the computer name
  # lspci -tv # list all PCI devices
  # lsusb -tv # lists all USB devices
  # lsmod # listed loadable kernel modules
  # env # viewing environment variable resource
  # free -m # to view memory usage and the amount of swap space
  # df -h # see how each partition usage
  # du -sh <directory name> # View the specified directory size
  # grep MemTotal / proc / meminfo # view the amount of memory
  # Grep MemFree / proc / meminfo # view the amount of free memory
  # uptime # View system uptime, number of users, load
  # cat / proc / loadavg # View system load disk and partition
  # mount | column -t # view the partition mounted state
  # fdisk -l # View all partition
  # swapon -s # View all swap partitions
  # hdparm -i / dev / hda # View disk parameters (only for IDE devices)
  # dmesg | grep IDE # view when you start the IDE device detects network conditions
  # ifconfig # View all the properties of the network interface
  # iptables -L # View firewall settings
  # route -n # View the routing table
  # netstat -lntp # View all listening ports
  # netstat -antp # view all established connections
  # netstat -s # View network statistics process
  # Ps -ef # view all processes
  # top # display real-time status of the user process
  # w # view active user
  # id <user name> # Display the user information
  # last # view the user login log
  # cut -d: -f1 / etc / View all users of the system passwd #
  # cut -d: -f1 / etc / group # group to see all system
  # crontab -l # to view the current user's scheduled tasks service
  # chkconfig -list # lists all system services
  # chkconfig -list | grep list all start on # of system service program
  # rpm -qa # view all installed packages
  cat / proc / cpuinfo: View CPU parameters
  cat / proc / partitions: Check the hard disk and partition
  cat / proc / meminfo: View memory information
  cat / proc / version: Check version, similar to the uname -r
  cat / proc / ioports: View equipment io port
  cat / proc / interrupts: View interrupts
  cat / proc / pci: pci device View information
  cat / proc / swaps: View information for all swap partitions
1, $  CAT / proc / Version  (Linux operating system to view the current version information)
      Role / proc directory
2, $ uname -a    (see the current version of Linux operating system kernel information)
     The role of the uname command
 
2. Check the Linux version:
1) $ lsb_release -a  , you can list all the version information // Note: This command applies to all of linux, including Redhat, SuSE, Debian and other distributions.
2) $ CAT / etc / Issue (see the current version of Linux operating system release information)
3) $ CAT / etc / RedHat-Release (see the current version of Linux operating system release information)
4)$file /sbin/init
 
View Linux hardware configuration information:
# Cat / proc / cpuinfo (Linux view cpu-related information, including the type, frequency, core information, etc.)
#dmidecode | grep "Product Name" // View machine information
#dmesg | grep -i eth // View card information
#cat / proc / meminfo // Check memory information
 
 
Some can also be used in ... FreeBSD
  # uname -a # View kernel / operating system / CPU information
  #cat / proc / version # Viewing the kernel
  # cat / etc / issue # check the OS version
  # head -n 1 / etc / issue # check the OS version
  # cat / proc / cpuinfo # View CPU information
  # hostname # View the computer name
  # lspci -tv # list all PCI devices
  # lsusb -tv # lists all USB devices
  # lsmod # listed loadable kernel modules
  # env # viewing environment variable resource
  # free -m # to view memory usage and the amount of swap space
  # df -h # see how each partition usage
  # du -sh <directory name> # View the specified directory size
  # grep MemTotal / proc / meminfo # view the amount of memory
  # grep MemFree / proc / meminfo # view the amount of free memory
  # Uptime # View system uptime, number of users, load
  # cat / proc / loadavg # View system load disk and partition
  # mount | column -t # View articulated partition status
  # fdisk -l # View all partition
  # swapon -s View all swap partitions #
  # hdparm -i / dev / hda # View disk parameters (only for IDE devices)
  # dmesg | grep IDE # view when you start the IDE device detection status of the network
  # ifconfig # view properties for all network interfaces
  # iptables - L # View firewall settings
  # route -n # View the routing table
  # netstat -lntp # View all listening ports
  # netstat -antp # view all established connections
  # netstat -s # View network statistics process
  # ps -ef # View all process
  # top # display real-time status of the user process
  # W # view active user
  # id <user name> # Display the user information
  # last # view the user login log
  # cut -d: -f1 / etc / passwd # View all system users
  # cut -d: -f1 / etc / View all groups group # system
  # crontab -l # to view the current user's scheduled tasks service
  # chkconfig -list # lists all system services
  # chkconfig -list | grep on # lists all system services startup
  # rpm -qa # View all installed packages
  cat / proc / cpuinfo: View CPU parameters
  cat / proc / partitions: Check the hard disk and partition
  cat / proc / meminfo: View memory information
  cat / proc / version: Check version, similar to the -r uname
  CAT / proc / ioports: View equipment io port
  cat / proc / interrupts: View interrupts
  cat / proc / pci: View information pci device
  cat / proc / swaps: View information for all swap partitions

Guess you like

Origin www.cnblogs.com/hopeiscoming/p/12609857.html