Wednesday, March 2, 2022

Oracle RMAN : Restore/ recover a database UNTIL TIME

 This tutorial explains you how to restore/ recover a database until a time.



Oracle RMAN : Restore/ recover a database UNTIL TIME


Here are the steps for Restoring/ Recovering an Oracle database until a specific time in the past:

 

1) Set the environment:

 

on Windows

set ORACLE_SID=DB10
echo %ORACLE_SID%
 

on AIX/Linux

export $ORACLE_SID=DB10

echo $ORACLE_SID

 

2) Connect to rman:

rman target / nocatalog
 

 

3) Start the database in "mount" state:

startup mount;
 

 

4) Run the following :
---------------------------------------
restore database UNTIL TIME
"to_date('11/03/2017 11:34:50 am','mm/dd/yyyy hh:mi:ss am')";

recover database UNTIL TIME
"to_date('11/03/2017 11:34:50 am','mm/dd/yyyy hh:mi:ss am')";

alter database open resetlogs;
---------------------------------------
OR

run
{
set UNTIL TIME "to_date('11/03/2017 11:34:50 am','mm/dd/yyyy hh:mi:ss am')";
restore database;
recover database;
alter database open resetlogs;
}

 

Note:

You have to put the right date/time.

CREATE PASSWORD FILE IN ASM DISK GROUP

 FOR ORACLE 12C ONLY

ASMCMD> pwcreate –dbuniquename {db_unique_name} {file_path} {sys_password}

ASMCMD> pwcreate –dbuniquename PRDPRE +DATA/PWDFILE/pwdPRDPREoracle

FOR ALL VERSION

orapwd file=’+DATA/orapwPRODPRE’ ENTRIES=10 DBUNIQUENAME=’PRODPRE’



https://docs.oracle.com/database/121/OSTMG/GUID-2ACBBB1E-A39D-473E-A9EF-E7BC3872C36E.htm

Tuesday, March 1, 2022

WHAT IS NFT AND HOW TO EARN WITH IT?

 

If you are interested in NFTs, this is how you earn it

NFTs are virtual goods used in gaming. They are often digital representations of objects that can be sold, traded or even rented. Examples include skins for weapons in the game Counter-Strike: Global Offensive, or Warframe platinum currency that can be bought with real money and used to purchase items in the game.

The first thing we should know about NFT is that it stands for Non-Fungible Token. In today’s digital world, these tokens can be treated as a form of property because they have a string value and cannot be divided into smaller quantities.

Non-Fungible Tokens are the new “genie” in the Crypto world. They are decentralized, fungible tokens that can digitally represent an asset or idea. These tokens are non-physical and cannot be duplicated.

When talking about how to earn money with this technology, there are multiple ways. We’ll discuss some of them later in the article along with answering the following questions:

  • What can I do with an NFT?
  • Can you make money with NFT?
  • What is NFT digital art?


 

How do Non-Fungible Tokens work?

Non-Fungible Tokens are unique digital assets that are accompanied by a certificate. The Certificate of Authenticity for the asset states that it is unique and different from any other token.

Ownership of the token is recorded through blockchain technology. These tokens could be digital representations of physical assets, such as artwork or clothing. As long as you are the owner, you can earn passive income with NFTs by imposing terms.

 

How to create NFTs & earn money?

The question of how to create non-fungible tokens and earn money has been on the minds of entrepreneurs, developers, and enthusiasts for quite some time. Non-fungible tokens are tokens that are unique in terms of their characteristics.

The following are the steps a person needs to follow to make NFT.

  • First, clarify and figure out what a non-fungible token is, and you are sure to make one and sell it.
  • Check out the platforms and select one that you want to sell.
  • Next, set up and connect the crypto wallet.
  • Finally, start creating your first non-fungible token and list it on your chosen platform.

After listing the digital assets, there are multiple ways of making a lifetime passive money. Some of them are the following.

 

Sell Non-Fungible Token on a Marketplace:

One of the most popular ways for people to make money is by selling their NFTs on a marketplace. There are a variety of platforms and marketplaces where these NFTs can be sold and traded on, such as:

  • OpenSea
  • Axie Marketplace
  • CryptoPunks
  • Rarible
  • SuperRare
  • Mintable

and so on.

 

Rent out:

Non-fungible tokens (NFTs) are digital assets that cannot be replicated. One way to use NFTs is through what is known as “renting”. Renting an NFT means giving it away for a fixed period of time in return for money.

 

Royalties:

The digital asset creator can earn passive lifetime royalties even after selling it out to someone else. The creator needs to impose terms and then, whenever someone buys the asset you initially created, you will still get royalties over your lifetime.

There are many other ways as well and people need to research more and more if they are interested. As we are talking about earning money online, we believe it is crucial to discuss how to make your digital wallet and online transactions safe, unblock content, and browse anonymously. The answer to all these questions is only “VPN.”

Virtual Private Networks are online security systems that use encryption algorithms to protect private information while it is being transmitted. A VPN creates a secure “tunnel” over the public Internet, which can then be used to safely transmit sensitive data.

Every VPN has its own encryption algorithm, although 256-bit encryption is typically the most common type it can also help you access unblocked site safely and quickly. We recommend people use VeePN while making online transactions or just browsing the internet.


 

NFT Sports:

Non-fungible tokens are offering great opportunities to every field, including sports. Unfortunately, no one has fully benefited from them yet. These digital assets can be a great money-making opportunity for sports like football and tennis game, if applied correctly.

They can also be helpful in increasing fan engagement with their favorite sports. Sports lovers always love to get sports collectibles like a badge, t-shirts, etc. and non-fungible tokens provide exactly that opportunity, but in digital form.

Non-fungible tokens in sports can’t only be restricted to t-shirts, badges, but they can also be fans’ favorite moments, photos, historical videos, and so on. In short, anything can be converted to a digital asset.

The sports industry, like the gaming industry, needs to adopt this technology as soon as possible and grow their market, standard, and new way of fan engagement easily.

 

Popular & Expensive Non-Fungible Tokens:

There is a huge list of the most popular and expensive non-fungible tokens. Some of them are already sold for nearly $100 million and even more. Here we are going to briefly discuss 5 popular tokens.

 

The Merge:

The Merge by digital artist Pak is one of the most expensive and popular non-fungible tokens. The Merge is a mysterious and creative artwork and was sold for $91.8 million

 

The First 5000 Days:

The First 5000 Days is an artwork created by the famous Beeple and sold for 69 Million Dollars in a first-ever digital art auction.

 

Human One:

Human One is a hybrid artwork, meaning it also combines some physical elements. The Human One was also created by Beeple and is worth nearly $29M.

 

CryptoPunk #7523:

CryptoPunk #7523 is a digital avatar that was bought by DraftKings’ Shareholder Shalom Mackenzie for nearly $12M.

 

CryptoPunk #3100:

CryptoPunk #3100 is another alien-based digital artwork with a blue and white headband. It sold for about $7.5 million.

In conclusion, NFT is a great way to passively make money. The process may appear daunting at first, but it’s relatively easy if you have some basic knowledge of how to operate on the blockchain.

Insert a new line at the beginning of a file

 Here's a way to add a line to the beginning of a file:


sed -i '1s!^!set timing on\n set time on\n set echo on\n!' batch1.sql_bkp

find . -type f -name '*.sql' -exec sed -i '1s!^!set timing on\n set time on\n set echo on\n!' {} \;


sed -i '1s/^/line_to_be_added\n/' file

Then, you could use the code above with find to achieve your ultimate goal:

find . -type f -name '*.js' -exec sed -i '1s/^/line_to_be_added\n/' {} \;

Wednesday, February 23, 2022

Commvault restore issue troubleshooting

 


Development is suggesting you to apply fix of Bug 33304775 - IPCDAT Errors - IBV Resources are Used for Processes Which Have No Need of Them ( Doc ID 33304775.8 )

There is no workaround, you will need to apply the fix. I'm checking for an available fix for you

Per Dev findings:
=============
The suspicion here is that RMAN is forking DB processes which are using a libcell context/IPCDAT context/QPs that are created by RMAN.

Due to a potential kernel issue, the child does not inherit the security context of the parent correctly (it does a deep copy as expected, but the ibverbs specific code is only doing a shallow comparison of the security context pointer).

If that happens, any ibv_modify_qp() call by the child will hit an EACCES for QPs created by RMAN.


The fix is to make sure that RMAN does not create QPs at all (it should not need to, since it does not do IOs with the cell directly). Bug 33304775 prevents processes from creating QPs unnecessarily, and could help with this issue.
=============
We had a couple of questions for you..
1. Is this issue reproducible 100% of the time when you try restoring this DB? if yes, how much time does it take from the time the restore is started..
2. Do you see the same issue across other DBs that you're migrating to 19c?
3. Are there any other DB or OS processes that are impacted during the same time ?

We can try and arrange a Zoom with rman development and Commvault support during US hours if this issue is easily reproducible. Also here is other information that Engg is requesting..

First, if the CommVault software changes uid or gid or any other process credential during runtime.

Second,
1. Copy the attached dtrace script trace.d to the node where they launch RMAM. The dtrace script will log a message for every attempt to change uid or gid.
2. Run “dtrace -s trace.d > /tmp/dtrace.out”.
3. Reproduce the issue.
a. While commVault/RMAN are running, capture the output of “cat /proc/<pid>/status” periodically, where <pid> is the pid of commVault and RMAN.
4. Once the issue is reproduced, collect the following:
a. The output of “dmesg -T”.
b. The ExaWatcher PS data from the period -- /opt/oracle.ExaWatcher/archive/Ps.ExaWatcher/
/c. var/log/audit/audit.log
d. /var/log/messages
e. /tmp/dtrace.out
f. The periodic dump of “cat /proc/<pid>/status” from Step 3a

Tuesday, September 21, 2021

OCI Listener timeout

 The default timeout values are:

  • 300 seconds for TCP listeners.

  • 60 seconds for HTTP listeners.

maximum timeout value is 7200 seconds.

XML Publisher Report Bursting Program taking time to start

 Customer Applied solution from:

XML Publisher Report Bursting Program (XDOBURSTREP) Performance Poor While Initializing ( Doc ID 2300674.1 )
SOLUTION: Replace random with urandom by modifying the Concurrent Program Define Execution Option
--All 5 reports completed in acceptable period of time.

This solution may work to resolve the issue.
However customer should still work on cleaning the out and log files as this situation will result in further issues.
Customer will discuss internally to decide if the purging / moving of the out and log (FSS directory) will occur tonight or
be put on hold until the weekend


-------------------- ACTION PLAN DETAILS BELOW---------------------

Customer Applied solution from:
XML Publisher Report Bursting Program (XDOBURSTREP) Performance Poor While Initializing ( Doc ID 2300674.1 )
SOLUTION: Replace random with urandom by modifying the Concurrent Program Define Execution Option
--All 5 reports completed in acceptable period of time.

(1) Responsibility: System Administrator
(2) Navigate to: Concurrent > Program > Define
(3) Query report
(4) Under "Executable" it shows Name = XDODTEXE
and (Options = NULL) or (Options = -Xms512M -Xmx512M)
(5) Update Options to = -Xms512M -Xmx512M -Djava.security.egd=file:/dev/./urandom
* note the space after -Xmx512M and before -Djava.security
(6) Save.
(7) Test using report that was updated



Action Plan From Here:
====================
Customer Actions:
1. Customer working on cleaning the out and log
Per Doc ID 2603009.1 - Concurrent Processing R12.2 : Too Many Concurrent Requests In Pending Status After Migrating To OCI
-- Log and Out files from concurrent processing in FSS directory needs to be restricted to 50000 records only

* Customer discussing internally to decide if the purging / moving of the out and log (FSS directory) will occur tonight or
be put on hold until the weekend 


2. If performance is still unacceptable, please provide the AWR and analyzer, per earlier action plan as follows
2.1> Generate AWR reports for intervals 20-Sep 13:15:to 13:30 , 13:30 to 13:45 . Generate instance level reports from all RAC instances using awrrpt.sql and addmrpt.sql scripts
2.2> Also run analyzer to check settings :
EBS Database Performance and Statistics Analyzer( Doc ID 2126712.1 )
NOTE: It is important that you review saved output file before uploading.
If you ran the Analyzer as a Concurrent Program, make sure to choose 'Web Page, HTML only' for the 'Save as type'.
Do not save as 'Webpage, complete (*.htm,*.html)' as it will be rejected when uploaded to Support. This applies to all Web browsers.

ewallet p12 vs cwallet sso

The  ewallet.p12  stores credentials and certificates protected by a user password, while  cwallet.sso  provides an obfuscated, random passw...