Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Uekisan method tutorial by Aketi Jyuuzou

Aketi JyuuzouAug 24 2010 — edited May 30 2011
This thread explains Uekisan method B-)

****************************************************************************************
1. What is Uekisan ? ?:|

"Uekisan" is Japanese language.
"Uekisan" is one of math problem.

If you remember "Tabibitosan method" 1007478
Tabibitosan and Uekisan are math problems.

http://yslibrary.cool.ne.jp/sansub0301.html
http://www.manabinoba.com/index.cfm/4,1487,73,html?year=2002

In Japanese -> English dictionary,
"Ueki" means "garden tree".

My homepage uses "Uekisan method"
http://www.geocities.jp/oraclesqlpuzzle/5-18.html
http://www.geocities.jp/oraclesqlpuzzle/7-42.html

****************************************************************************************
2. What is basic usage of "Uekisan method" ? ?:|
from 1120325

How many Sundays in 2010-August ?
select
(next_day(date '2010-08-31'   ,'日')-7
-next_day(date '2010-08-01' -1,'日'))/7+1
as "sundays"
from dual;

sundays
-------
      5
I explain above SQL logic ;-)

next_day(date '2010-08-31','日')-7
is the most nearly Sunday which is equal or less than '2010-08-31'
It is '2010-08-29'

next_day(date '2010-08-01' -1,'日')
is the most nearly Sunday which is equal or greater than '2010-08-01'
It is '2010-08-01'

And then please imagine two Ueki at very huge horizontal calendar :8}
One of Ueki exists '2010-08-01'
The another exists '2010-08-29'

And another Ueki exist between '2010-08-01' and '2010-08-29' of each Sunday.

Then How many Ueki exists ?
It is derived by (date '2010-08-29' - date '2010-08-01')/7+1

****************************************************************************************
3. What is complex usage of "Uekisan method" ? ?:|
from 1108468

How many Fridays and Saturdays between '2010-02-11' and '2010-05-19' ?

OK I will use "Uekisan method" twice.
select
 (next_day(date '2010-05-19'   ,'金')-7
 -next_day(date '2010-02-11' -1,'金'))/7+1
+(next_day(date '2010-05-19'   ,'土')-7
 -next_day(date '2010-02-11' -1,'土'))/7+1
as "金土の日数"
from dual;

金土の日数
----------
        28
****************************************************************************************
OracleSQLPuzzle (MyHomePage)
http://www.geocities.jp/oraclesqlpuzzle/

My SQL article of OTN-Japan B-)
http://www.oracle.com/technetwork/jp/articles/otnj-sql-image4-1-365357-ja.html

sister threads
Tabibitosan method tutorial by Aketi Jyuuzou
1007478
Boolean algebra in some Rows tutorial by Aketi Jyuuzou
1007678

Comments

K.Gan


I will answer your main question "  I am upgrading my Oracle database from 11.2.0.4 to 12.2,  but my Goldengate is 12.1,   and I don't want to go to Goldengate 12.2 now, is it possible?"

Irrespective of whether you remain at 12.1 or go to 12.2 you need a new installation of Goldengate. Your current binary set for 12.1 for 11r2g will not work for 12c. When you run OUI you will see it ask you what is your database 11 or 12. So you still need to upgrade/install (whatever word you want to use) a new binary set.

Now the main gotcha, both Goldengate 12.1/12.2 does not yet have a version for Oracle DB 12cR2. Yeah it has been a while! We are all waiting. That is why it ask you to go compatibility 12.1 which kind of defeats the purpose of 12cr2.

Cheers

Kee Gan

Pooja Garg-Oracle

Hi,

Oracle database 12.2 version will only be supported from OGG v12.3 which still have not been released.

Best Regards,

Pooja Garg

ORASCN

Hi ,

From Oracle GoldenGate 12c, Graphical mode of installation (GUI) was introduced. During the installation you need to select for which version of Oracle RDBMS you need to install the Oracle GoldenGate. Either for Oracle 11g database or Oracle 12c database.

For Oracle 12c database, only OGG 12c is supported and for Oracle Database 12cR2, only OGG 12.3 supports..

(A),  if i specify my Oracle 12CR2 database's compatible parameter to 12.1,   would (A) fully support?

---- If you specify the compatible parameter of Oracle Database to 12.1, you can use Oracle GoldenGate 12.2 in it. But there features of Oracle Database 12.2 cannot be used in it. It would be the limitations.

(B),  the matrix tells you to use compatible to 12.1 on 12cr2 database.

---- Yes, you can set compatible to 12.1 for the 12cR2 database and use OGG 12.2 in it.

Regards,

Veera

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Sep 21 2010
Added on Aug 24 2010
1 comment
1,058 views