Installing asm on linux

Remote Oracle Database Support

we need to create three type of disks boot , u01 & asm. Out of which first one show as follow and rest can be created in same way.

Go for Dynamic as it allocates the space when used & takes less time for creation. rest everything is same as fixed size option

And reboot the VM.. IP should be visible

Add to /etc/fstab for persistent across reboot

/dev/sdb /u01 ext4 defaults 0 0

useradd -G oinstall oracle

usermod –g oinstall oracle

rpm -ivh oracleasmlib-2.0.12-1.el7.x86_64.rpm

rpm -ivh oracleasm-support-2.1.11-2.el7.x86_64.rpm

oracleasm createdisk DATA /dev/sdc1

chown oracle:oinstall oracle

login as grid and copy all software in /u01/app/grid/software and grid home setup in /u01/app/grid/19c

[grid@localhost dbs]$ df -h /dev/shm

Filesystem Size Used Avail Use% Mounted on

tmpfs 697M 0 697M 0% /dev/shm

[grid@localhost dbs]$ cat init.ora | grep -i memory

[root@localhost ~]# umount tmpfs

[root@localhost ~]# mount -t tmpfs shmfs -o size=1500m /dev/shm

[root@localhost ~]# df -h /dev/shm

Filesystem Size Used Avail Use% Mounted on

[oracle@localhost 19c]$ ps -ef | grep -i pmon

oracle 1472 1 0 04:22 ? 00:00:00 ora_pmon_mylab

oracle 2582 13850 0 04:31 pts/1 00:00:00 grep —color=auto -i pmon

grid 7100 1 0 01:16 ? 00:00:01 asm_pmon_+ASM

[oracle@localhost 19c]$ sqlplus / as sysdba

-bash: sqlplus: command not found

[oracle@localhost 19c]$ ORACLE_HOME=/u01/app/oracle/19c

[oracle@localhost 19c]$ export ORACLE_HOME

[oracle@localhost 19c]$ PATH=$PATH:$ORACLE_HOME/bin

[oracle@localhost 19c]$ export PATH

[oracle@localhost 19c]$ ORACLE_SID=mylab

[oracle@localhost 19c]$ export ORACLE_SID

[oracle@localhost 19c]$ sqlplus / as sysdba

Источник

Compile/run assembler in Linux?

I’m fairly new to Linux (Ubuntu 10.04) and a total novice to assembler. I was following some tutorials and I couldn’t find anything specific to Linux. So, my question is, what is a good package to compile/run assembler and what are the command line commands to compile/run for that package?

Читайте также:  Установка glpi на astra linux

I’m in the same boat. I’ve never really picked up asm on Linux because there’s no real presence. Maybe it’s because on Windows cracking is all the rage.

These don’t completely answer my question. I still want to know what console commands you would use to compile and run programs in NASM or gas

8 Answers 8

The GNU assembler is probably already installed on your system. Try man as to see full usage information. You can use as to compile individual files and ld to link if you really, really want to.

However, GCC makes a great front-end. It can assemble .s files for you. For example:

The code above is x86-64. If you want to make a position-independent executable (PIE), you’d need lea hello(%rip), %rdi , and call puts@plt .

A non-PIE executable (position-dependent) can use 32-bit absolute addressing for static data, but a PIE should use RIP-relative LEA. (See also Difference between movq and movabsq in x86-64 neither movq nor movabsq are a good choice.)

If you wanted to write 32-bit code, the calling convention is different, and RIP-relative addressing isn’t available. (So you’d push $hello before the call, and pop the stack args after.)

You can also compile C/C++ code directly to assembly if you’re curious how something works:

$ cat >hello.c int main(void) < printf("Hello, world!\n"); return 0; >EOF $ gcc -S hello.c -o hello.s 

See also How to remove «noise» from GCC/clang assembly output? for more about looking at compiler output, and writing useful small functions that will compile to interesting output.

Источник

Installing & Configuring Oracle ASM on Linux – Red Hat Enterprise Linux 4.0

We have set up the ASM (Automatic Storage Management), a new feature of Oracle 10g, on Linux server. In this article, I would like to share the installation and configurations steps what I have followed.

Читайте также:  Linux version x86 or x64

Operating System: Linux ñ Red Hat Enterprise Linux 4.0
Kernel Version: 2.6.9-42.ELsmp
Architecture: 32 bit x86
Database: Oracle 10g
Version: Release 2 (10.2.0.1)

Following are the steps I have followed.

1) Download the ASMLib software packages from the Oracle Technology Network, below is an URL for the same.

2) You may see 4-6 packages for your Linux platform; the oracleasmlib package provides the actual ASM library. The oracleasm-support package provides the utilities used to get the ASM driver up and running. Both of these packages need to be installed.

Note: Download as per your OS Kernel and Architecture

3) Upload the above 3 packages using ftp in Linux server, and log on to the server as root , and install them as below.

Go to the rpms directory where rpms are downloaded.

rpm -Uvh oracleasm-support-2.0.3-1.i386.rpm \

ASMLib software packages are now installed successfully.

4) Run the following command to configure ASMLib, outputs of the commands are the self explanatory.

Configuring the Oracle ASM library driver.

This will configure the on-boot properties of the Oracle ASM library driver. The following questions will determine whether the driver is loaded on boot and what permissions it will have. The current values will be shown in brackets (‘[]’). Hitting without typing an answer will keep that current value. Ctrl-C will abort.

Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Creating /dev/oracleasm mount point: [ OK ]
Loading module “oracleasm”: [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]

Читайте также:  Посмотреть сетевую конфигурацию linux

Writing Oracle ASM library driver configuration: [ OK ]
Unmounting ASMlib driver filesystem: [ OK ]
Unloading module “oracleasm”: [ OK ]

Writing Oracle ASM library driver configuration: [ OK ]
Loading module “oracleasm”: [ OK ]
Mounting ASMlib driver filesystem: [ OK ]
Scanning system for ASM disks: [ OK ]

5) Making Disks Available to ASMLib

/etc/init.d/oracleasm createdisk VOL1 /dev/sda2

Marking disk “/dev/sda2” as an ASM disk: [ OK ]

/etc/init.d/oracleasm deletedisk VOL1

Deleting Oracle ASM disk “VOL1” [ OK ]

/etc/init.d/oracleasm querydisk /dev/sda2

Disk “/dev/sda2” is marked an ASM disk with the label “VOL1”

/etc/init.d/oracleasm querydisk /dev/sda1

Disk “/dev/sda1” is not marked an ASM disk

To list and query the existing disks

/etc/init.d/oracleasm querydisk VOL1

Disk “VOL1” is a valid ASM disk on device [8, 2]

We are now done with installation and configuration of ASMLib on Linux platform.

Conclusion: This article is specific to one of our Linux boxes, I would request you to refer other documents in Oracle or Google for respective Operating Systems i.e. Windows and Unix.

Источник

Оцените статью
Adblock
detector