Redis user permissions (ACL) and python connection

 Recently, I was working on setting up a redis cluster along with separate users for readwrite and readonly. I setup the readonly user using the below privileges (ACLs):   user redisreadonly on >mySuperSecretPassword ~* resetchannels -@all +@read +ping +asking   Once this is setup, I wrote a simple program in python to connect to the redis cluster using the readonly credentials and print the number of keys.   #!/usr/bin/env python3 """ pip3 install redis """ from redis.cluster import RedisCluster, ClusterNode # ─────── Cluster connection ─────── startup_nodes = [ ClusterNode("redis_host_1", 6379), ClusterNode("redis_host_2", 6379), ClusterNode("redis_host_3", 6379) ] rc = RedisCluster(startup_nodes=startup_nodes,decode_responses=True,username='redisreadonly',password='mySuperSecretPassw...

Find OS Kernel Bit in UNIX - Ready reckoner

Listed below is the ready reckoner for finding out the kernel bit information for Linux, Solaris, HP-UX and IBM AIX, which are the most commonly used OS for Oracle Apps.

Linux

getconf LONG_BIT
or
uname -m (works for x86-64 bit servers. Not tested it in 32 bit servers)

eg:
$ getconf LONG_BIT
64
$ uname -m
x86_64
$


Sun SPARC Solaris

isainfo -kv

eg:
$ isainfo -kv
64-bit sparcv9 kernel modules
$

HP-UX

getconf KERNEL_BITS

eg:
$ getconf KERNEL_BITS
64
$

IBM AIX

bootinfo -K

Not tested as I currently do not have any AIX servers to test on!


Note 1: To find whether a given executable is 32-bit or 64-bit, use the command

file <executable_name>
eg:
$ file oracle
oracle: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped
$ file tnslsnr
tnslsnr: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped
$ file sqlplus
sqlplus: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped


Note 2: You can install a 32-bit executable on a 64-bit OS but not vice-versa.

Comments

Popular posts from this blog

Interesting Oracle Applications (EBS) Interview Questions

Modify retention period of workflow queues

Check if UTL_FILE and FND_FILE are working fine