finite automata – Question about an answer related to designing an ASM for a sequence detector

The question says:

Design a sequence detector that searches for a series of binary inputs to satisfy
the pattern 01(0*)1, where (0*) is any number of consecutive zeroes. The
output (Z) should become true every time the sequence is found.

The answer to this example in the document I am reading is this:

enter image description here

My question is: After going from state ‘first’, the decision box checks X. If it is 0, then it does not fit the pattern 01(0*)1. So, it should go back to state ‘start’. In this answer, it goes back to state ‘first’ instead, and so a sequence that violates the pattern could eventually get accepted. Am I correct to think so? If not, why?

The question is tagged with finite automata because there is no ASM tag. The two are similar enough.

How can I keep ASM groups in Oracle RMAN Duplicate?


Whenever I issue a DUPLICATE on a Oracle backup, it always places all the files in to the default ASM diskgroup. I usually have the same ASM diskgroup structure at source and destination. I know I can SET NEWNAME for individual files to control it, but I’d really just like the files to go in the same group they came from.

Is there a RMAN DUPLICAE parameter to put them in the same ASM diskgroup name that they started from?

Pkscript Invalid ASM & Index 0 Details Unspent and unconfirmed should I stop/reverse I don’t know how can anyone help me if there is an issue?

"block_height": -1,
"block_index": -1,
"hash": "3984a1904e15bc9a0bd7f8b51f8d940802ee6de9509a0a733b4562290ddaa961",
"hex": "02000000000101b3f638c36724a06d09a0c2b643a2089d65441159fe59d160f33c297d5a9fbc590300000000ffffffff01e9ea0c000000000017a91489b646b77ccfb39dbdf7fe37379bf38a36900f698702483045022100ef7ff37f39a93abc9be22e4cbf6ca7e3f80fb2e84c1255f42133669435d4533f02205b887d7ea8c28d6ce18a860e1c3a2a646878aef6a64c284db1bc7126ca7e3367012102b3ca7a42a79ba9877f1814db4556a890cf1d904db77f05d98e3dae1463035ac000000000",
"addresses": [
"total": 846569,
"fees": 13431,
"size": 83,
"preference": "medium",
"relayed_by": "",
"received": "2021-01-12T17:54:25.792Z",
"ver": 2,
"double_spend": false,
"vin_sz": 1,
"vout_sz": 1,
"confirmations": 0,
"inputs": [
"prev_hash": "59bc9f5a7d293cf360d159fe591144659d08a243b6c2a0096da02467c338f6b3",
"output_index": 3,
"output_value": 860000,
"sequence": 4294967295,
"addresses": [
"script_type": "pay-to-witness-pubkey-hash",
"age": 665757,
"witness": [
"outputs": [
"value": 846569,
"script": "a91489b646b77ccfb39dbdf7fe37379bf38a36900f6987",
"addresses": [
"script_type": "pay-to-script-hash"

oracle – ASM is not able to see disks in Solaris 11.4

I’m trying to install the grid on Solaris 11.4, but the ASM is not able to see any disks. Some suggestion?

Here is my settings

The disk and slice:

       0. c0t6589CFC00000080AABB57A209979117Fd0 <FreeNAS-iSCSI Disk-0123-37.00GB> <<DISK THAT I'M TRYING TO USE
       1. c0t6589CFC000000722BA2BECC579FCA25Ad0 <FreeNAS-iSCSI Disk-0123-27.00GB>
       2. c2t0d0 <VMware,-VMware Virtual S-1.0-20.00GB>
Specify disk (enter its number): 0
selecting c0t6589CFC00000080AABB57A209979117Fd0 <FreeNAS-iSCSI Disk-0123 cyl 6182 alt 2 hd 224 sec 56>
(disk formatted)

partition> print
Current partition table (original):
Total disk cylinders available: 6182 + 2 (reserved cylinders)

    Part      Tag    Flag     Cylinders        Size            Blocks
      0 unassigned    wm       0               0         (0/0/0)           0
      1        usr    wm       1 - 6181       36.97GB    (6181/0/0) 77534464 <<CREATED SLICE
      2     backup    wu       0 - 6181       36.98GB    (6182/0/0) 77547008
      3 unassigned    wm       0               0         (0/0/0)           0
      4 unassigned    wm       0               0         (0/0/0)           0
      5 unassigned    wm       0               0         (0/0/0)           0
      6 unassigned    wm       0               0         (0/0/0)           0
      7 unassigned    wm       0               0         (0/0/0)           0
      8       boot    wu       0 -    0        6.12MB    (1/0/0)       12544
      9 unassigned    wm       0               0         (0/0/0)           0

The disks path:

root@rac1:/dev/rdsk# ls -l /dev/rdsk/c0t6589CFC00000080AABB57A209979117Fd0s1
lrwxrwxrwx   1 root     root          68 Dec 13 10:41 /dev/rdsk/c0t6589CFC00000080AABB57A209979117Fd0s1 -> ../../devices/scsi_vhci/disk@g6589cfc00000080aabb57a209979117f:b,raw
root@rac1:/dev/rdsk# ls -l /devices/scsi_vhci/disk@g6589cfc00000080aabb57a209979117f:b,raw
crw-r-----   1 root     sys      168, 193 Dec 13 10:41 /devices/scsi_vhci/disk@g6589cfc00000080aabb57a209979117f:b,raw

I’ve created a logical device name:

root@rac1:/dev/rdsk# mknod ocrdisk1 b 168 193
root@rac1:/dev/rdsk# chown grid:asmadmin ocrdisk1
root@rac1:/dev/rdsk# chmod 660 ocrdisk1
root@rac1:/dev/rdsk# ls -l ocrdisk1
brw-rw----   1 grid     asmadmin 168, 193 Dec 13 12:36 ocrdisk1
root@rac1:/dev/rdsk# stat ocrdisk1
  File: ocrdisk1
  Size: 9223372036854775807     Blocks: 1          IO Block: 8192   block special file
Device: 3ffc00000000h/70351564308480d   Inode: 40830688    Links: 1     Device type: a8,c1
Access: (0660/brw-rw----)  Uid: (  102/    grid)   Gid: ( 1025/asmadmin)
Access: 2020-12-13 12:36:03.000000000 -0200
Modify: 2020-12-13 12:36:03.000000000 -0200
Change: 2020-12-13 12:36:16.000000000 -0200
 Birth: -

But the installer see no disks:

enter image description here

assembly – Tentando Entender Esse Codigo ASM Alguem Poderia me da Uma ajuda

Alguem Poderia me Dizer Prq Esses bytes Mudam Se o Opcode è idêntico? suponho q Seja Prq ta em um Local Diferente na Memoria. se For Sim Como eu Faria Pra Escrever Os Bytes e Mantendo o Mesmo Opcode? Já q se eu Escrever os Bytes da Parte do Original da Memoria o Opcode Muda ai Eu n Consigo Fazer a Chamada Da Função Que Abre Um Diálogo no PINBALPrint do Cheat Engine

exploit development – how to overflow fgets asm x86 32 bits. i want to give a input from a file such that i overwrite the local variable

; Fill buffer with data from standard input.
; Buffer is stored on the stack.

extern printf
extern puts
extern strlen
extern gets
extern fgets
extern stdin

section .data
    read_message: db "insert buffer string: ", 0
    buffer_intro_message: db "buffer is:", 0
    byte_format: db " %02X(%c)", 0
    null_string: db 0
    var_message_and_format: db "var is 0x%08X", 13, 10, 0

section .text

global main

    push ebp
    mov ebp, esp

    ; Make room for local variable (32 bit, 4 bytes).
    ; Variable address is at ebp-4.
    sub esp, 4

    ; Make room for buffer (64 bytes).
    ; Buffer address is at ebp-68.
    sub esp, 64

    ; Initialize local variable.
    mov dword (ebp-4), 0xCAFEBABE

    ; Read buffer from standard input.
    push read_message
    call printf
    add esp, 4

    lea ebx, (ebp-76)
    push dword (stdin)
    push 64
    push ebx
    call fgets
    add esp, 12

    ; Push string length on the stack.
    ; String length is stored at ebp-72.
    push ebx
    call strlen
    add esp, 4
    push eax

    ; Print data in buffer.
    push buffer_intro_message
    call printf
    add esp, 4

    xor ecx, ecx
    xor eax, eax
    lea ebx, (ebp-76)
    mov al, byte(ebx+ecx)
    push ecx    ; save ecx

    ; Print current byte.
    push eax
    push eax
    push byte_format
    call printf
    add esp, 12

    pop ecx ; restore ecx
    inc ecx
    cmp ecx, (ebp-76)
    jl print_byte

    push null_string
    call puts
    add esp, 4

    ; Print local variable.
    mov eax, (ebp-4)
    push eax
    push var_message_and_format
    call printf
    add esp, 8


linux – Oracle – Delete dmp files from ASM diskgroup

I want to delete my export files daily from ASM diskgroup with a crontab job. I want to prepare a script for it.








How can I prepare this script? I prepared a template for it, but I couldn’t script it.




rm -rf exp*.dmp


Best regards,

oracle – What is the correct way to present the disks to ASM?

Hello I would like to know which is the correct way … or the most recommended way to present the disks to ASM, for example: I have 3 disks mapped to a server (rhel7) orasys, orafra, oradata, with dm-multipath I configure the multipath and I put aliases (orasys, orafra and oradata respectively). The doubt I have from there, I have read in the guides, that the disks are formatted, leaving for examples: orasys1, orafra1, oradata1 and these are the ones that are presented to ASM as /dev/mapper/* and with the respective permissions … but when I do it that way it gives an error finishing the installation of the grid because it cannot create the diskgroup, however if I do not format them, that is, I present them directly as orasys, orafra and oradata I have no problem.
The database is oracle 19c and I don’t use asmlib but udev rules.

oracle – asm filter driver cannot be started

I am trying to install Oracle Grid with ASM filter driver.

I've only installed grid software.

I can't start asm as root. Actually, I have no response from asmcmd filter driver commands:

root@srvdb18c:/u01/app/18.0.0/grid/bin# env|grep ORACLE
root@srvdb18c:/u01/app/18.0.0/grid/bin# ./asmcmd afd_configure
root@srvdb18c:~# $ORACLE_HOME/bin/asmcmd afd_state

What could be the problem?

Important: it is a Solaris 11 System.

oracle – ASM tries to mount a dropped disk group

In my endeavor I get the following error:

ORA-15032: not all alterations performed
ORA-15017: diskgroup "OCR" cannot be mounted
ORA-15040: diskgroup is incomplete

The problem is: I have already deleted this volume group (I have changed the OCR volume group to a different OCR_NEW volume group). I have two instances, everything is fine in the first instance, but in the second instance I get this error.

Where's the problem? I have found nothing.

I have previously tried to disable to try to remove srvctl Command, but not so good.

(oracle@server2 trace)$ srvctl disable diskgroup -diskgroup OCR
PRCA-1000 : ASM Disk Group OCR does not exist
PRCR-1001 : Resource ora.OCR.dg does not exist