ba

Nieuw voetbalgear nodig?

Voetbal: het is een sport waar we ons allemaal een beetje mee verbonden voelen en de sport heeft dan ook ...... Lees verder: Nieuw voetbalgear nodig?




ba

12C: IN DATABASE ARCHIVING

In this post, I will demonstrate a new feature introduced in 12c : In database archiving. It enables you to archive rows within a table by marking them as invisible. This is accomplshed  by means of a hidden column ORA_ARCHIVE_STATE. These invisible rows are not visible to the queries but if needed, can be viewed , by setting a session parameter ROW ARCHIVAL VISIBILITY.

Overview:

-- Create test user uilm, tablespace ilmtbs
-- Connect as user uilm
-- create and populate test table (5 rows) ilmtab with row archival clause
-- Note that the table has an additional column ORA_ARCHIVE_STATE automatically created   and has the default value of 0 (indicates that row is active)
-- Note that this column is not visible when we describe the table or simply issue select * from ...
-- We need to access data dictionary to view the column
-- Make two  rows in the table inactive by setting ORA_ARCHIVE_STATE column to a non zero value.
-- Check that inactive rows are not visible to query
-- Set the parameter ROW ARCHIVAL VISIBILITY  = all to see inactive rows also
-- Set the parameter ROW ARCHIVAL VISIBILITY  = active to hide inactive rows
-- Issue an insert into ... select * and check that only 3 visible rows are inserted
-- Set the parameter ROW ARCHIVAL VISIBILITY  = all to see inactive rows also
-- Issue an insert into ... select * and check that all the rows are inserted but ORA_ARCHIVE_STATE    is not propagated in inserted rows
-- Disable row archiving in the table and check that column ORA_ARCHIVE_STATE is automatically dropped
-- drop tablespace ilmtbs and user uilm

Implementation :

-- Create test user, tablespace and test table
SQL> conn sys/oracle@em12c:1523/pdb1 as sysdba
sho con_name

CON_NAME
------------------------------
PDB1

SQL> set sqlprompt PDB1>

PDB1>create tablespace ilmtbs datafile '/u02/app/oracle/oradata/cdb1/pdb1/ilmtbs01.dbf' size 1m;
grant connect, resource, dba  to uilm identified by oracle;
alter user uilm default tablespace ilmtbs;

conn uilm/oracle@em12c:1523/pdb1
sho con_name

CON_NAME
------------------------------
PDB1
-- create table with "row archival clause"
PDB1>drop table ilmtab purge;
create table ilmtab (id number, txt char(15)) row archival;
insert into ilmtab values (1, 'one');
insert into ilmtab values (2, 'two');
insert into ilmtab values (3, 'three');
insert into ilmtab values (4, 'four');
insert into ilmtab values (5, 'five');
commit;
-- Note that the table has an additional column ORA_ARCHIVE_STATE automatically created    and has the default value of 0 (indicates that row is active)
PDB1>col ora_archive_state for a20
select id, txt, ora_archive_state from ilmtab;

ID TXT             ORA_ARCHIVE_STATE
---------- --------------- --------------------
1 one             0
2 two             0
3 three           0
4 four            0
5 five            0
-- Note that this column is not visible when we describe the table or simply issue select * from ...
PDB1>desc ilmtab
Name                                      Null?    Type
----------------------------------------- -------- ----------------------------
ID                                                 NUMBER
TXT                                                CHAR(15)

PDB1>select * from ilmtab;

ID TXT
---------- ---------------
1 one
2 two
3 three
4 four
5 five
-- Since the column is invisible, let me try and make it visible
-- Note that Since the column is maintained by oracle itself, user can't modify its attributes
PDB1>alter table ilmtab modify (ora_archive_state visible);
alter table ilmtab modify (ora_archive_state visible)
*
ERROR at line 1:
ORA-38398: DDL not allowed on the system ILM column
-- We need to access data dictionary to view the column
-- Note that this column is shown as hidden and has not been generated by user
PDB1>col hidden for a7
col USER_GENERATED for 20
col USER_GENERATED for a20

select TABLE_NAME, COLUMN_NAME, HIDDEN_COLUMN, USER_GENERATED
from user_tab_cols where table_name='ILMTAB';

TABLE_NAME  COLUMN_NAME          HID USER_GENERATED
----------- -------------------- --- --------------------
ILMTAB      ORA_ARCHIVE_STATE    YES NO
ILMTAB      ID                   NO  YES
ILMTAB      TXT                  NO  YES
-- We can make selected rows in the table inactive by setting ORA_ARCHIVE_STATE column to a non zero value.
This can be accomplished using update table... set ORA_ACRHIVE_STATE =
. <non-zero value>
. dbms_ilm.archivestatename(1)

-- Let's update row with id =1 with ORA_ARCHIVE_STATE=2
     and update row with id =2 with dbms_ilm.archivestatename(2)
PDB1>update ilmtab set ora_archive_state=2 where id=1;

update ilmtab set ora_archive_state= dbms_ilm.archivestatename(2) where id=2;
-- Let's check whether updates have been successful and hidden rows are not visible
PDB1>select id, txt, ORA_ARCHIVE_STATE from ilmtab;

ID TXT             ORA_ARCHIVE_STATE
---------- --------------- --------------------
3 three           0
4 four            0
5 five            0
-- The updated rows are not visible!!
-- Quite logical since we have made the rows active and by default only active rows are visible

-- To see inactive rows also, we need to set the parameter ROW ARCHIVAL VISIBILITY  = all at session level
-- Note that the column ORA_ARCHIVE_STATE has been set to 1 for id =2 although we had set it to 2 using
dbms_ilm.archivestatename(2)
PDB1>alter session set ROW ARCHIVAL VISIBILITY  = all;
select id, txt, ORA_ARCHIVE_STATE from ilmtab;

ID TXT             ORA_ARCHIVE_STATE
---------- --------------- --------------------
1 one             2
2 two             1
3 three           0
4 four            0
5 five            0
-- Note that the column ORA_ARCHIVE_STATE has been set to 1 for id =2 although we had set it to 2 using    dbms_ilm.archivestatename(2)

-- Let's find out why
-- Note that The function dbms_ilm.archivestatename(n) returns only two values    0 for n=0 and 1 for  n <> 0
PDB1>col state0 for a8
col state1 for a8
col state2 for a8
col state3 for a8

select dbms_ilm.archivestatename(0) state0 ,dbms_ilm.archivestatename(1) state1,
dbms_ilm.archivestatename(2) state2,dbms_ilm.archivestatename(3) state3  from dual;

STATE0   STATE1   STATE2   STATE3
-------- -------- -------- --------
0        1        1        1
-- In order to make the inactive rows (id=1,2) hidden again, we need to set the parameter ROW ARCHIVAL VISIBILITY  = Active
PDB1>alter session set row archival visibility = active;
select id, txt, ORA_ARCHIVE_STATE from ilmtab;

ID TXT             ORA_ARCHIVE_STATE
---------- --------------- --------------------
3 three           0
4 four            0
5 five            0
-- Let's issue an insert into ... select *
-- Note that only 3 new rows are visible
PDB1>insert into ilmtab select * from ilmtab;

select id, txt, ora_archive_state from ilmtab;

ID TXT             ORA_ARCHIVE_STATE
---------- --------------- --------------------
3 three           0
4 four            0
5 five            0
3 three           0
4 four            0
5 five            0

6 rows selected.
-- I want to check if hidden rows were also inserted
-- Let's check by making  hidden rows visible again
-- Note that only visible rows(id=3,4,5) were inserted
PDB1>alter session set row archival visibility=all;
select id, txt, ora_archive_state from ilmtab;

ID TXT             ORA_ARCHIVE_STATE
---------- --------------- --------------------
1 one             2
2 two             1
3 three           0
4 four            0
5 five            0
3 three           0
4 four            0
5 five            0

8 rows selected.
-- Let's set row archival visibility = all and then again insert rows from ilmtab
-- Note that all the 8 rows are inserted but ORA_ARCHIVE_STATE ha not been copied    ORA_ARCHIVE_STATE <> 0 in only 2 records (id = 1,2) even now.
PDB1>alter session set row archival visibility=all;
insert into ilmtab select * from ilmtab;
select id, txt, ora_archive_state from ilmtab order by id;

ID TXT             ORA_ARCHIVE_STATE
---------- --------------- --------------------
1 one             0
1 one             2
2 two             0
2 two             1
3 three           0
3 three           0
3 three           0
3 three           0
4 four            0
4 four            0
4 four            0
4 four            0
5 five            0
5 five            0
5 five            0
5 five            0

16 rows selected.
-- Disable row level archiving for the table
-- Note that as soon as row archiving is disabled, pseudo column ora_archive_state is dropped automatically
PDB1>alter table ilmtab no row archival;
select id, txt, ORA_ARCHIVE_STATE from ilmtab;

ERROR at line 1:
ORA-00904: "ORA_ARCHIVE_STATE": invalid identifier

PDB1>col hidden for a7
col USER_GENERATED for 20
col USER_GENERATED for a20

select TABLE_NAME, COLUMN_NAME, HIDDEN_COLUMN, USER_GENERATED
from user_tab_cols where table_name='ILMTAB';

TABLE_NAME  COLUMN_NAME          HID USER_GENERATED
----------- -------------------- --- --------------------
ILMTAB      ID                   NO  YES
ILMTAB      TXT                  NO  YES
Note : Had we created this table using sys, we could not have disabled row archiving .

-- cleanup --
PDB1>conn sys/oracle@em12c:1523/pdb1 as sysdba
drop tablespace ilmtbs including contents and datafiles;
drop user uilm cascade;
References:

http://docs.oracle.com/cd/E16655_01/server.121/e17613/part_lifecycle.htm#VLDBG14154

----------------------------------------------------------------------------------------------------

Oracle 12c Index

----------------------------------------------------------------------------------------------

 




ba

Are older releases of the database really unsupported?

articles: 

I see posts on Oracle related forums about various releases (anything that isn't 11.x or 12.x) being "unsupported". This is wrong. Of course you should upgrade any 9i or 10g databases, but you don't have to.

Oracle Corporation's lifetime support policy is documented here,
Lifetime Support Policy
take a look, and you'll see that release 10.2 was in premier support until end July 2010 when it went into extended support. At end July 2013, it goes into sustaining support. Sustaining support will continue indefinitely. Even release 8.1.7 will have sustaining support indefinitely.
So what is sustaining support? That is documented here,
Lifetime support benefits
To summarize, extended support gives you everything you are likely to need. What you do not get is certification against new Oracle products or new third party products (principally, operating systems). But does that matter? I don't think so. For example, release 11.2.0.3 (still in premier support) is not certified against Windows 8, but it works fine.
Sustaining support has a more significant problem: no more patches. Not even patches for security holes, or changes in regulatory requirements. The security patch issue may of course be serious, but regulatory issues are unlikely to matter (this is a database, not a tax management system.) Think about it: 10g has been around for many years. It is pretty well de-bugged by now. If you hit a problem with no work around, you are pretty unlucky. Sustaining support gives you access to technical support, available patches, software, and documentation. That is all most sites will ever need.
Right now, I am working on a 9.2.0.8 database. It cannot be upgraded because the application software is written by a company that does not permit a database upgrade. Why not? Well, the reason may be commercial: they have a replacement product that is supported on newer databases. But that is nothing to do with me. The database works, the software works. Making it work better is a challenge - but that is what a DBA is paid to do. Don't just write it off as "unsupported".
Of course I am not suggesting that users should not upgrade to current releases - but upgrades are a huge project, and can have major implications. Running out dated software is silly, unless you have an irrefutable reason for so doing. The lack of security patches make you vulnerable to data loss. The lack of regulatory patches may make it illegal. The lack of newer facilities will be restricting the utility of the system. You may be losing money by not taking of advantage of changes of newer technology that can better exploit your hardware.
If anyone is looking for consulting support to upgrade their database - my boss will be happy to give you a quote. But I won't refuse to support you in the meantime.
--
John Watson
Oracle Certified Master DBA
http://skillbuilders.com




ba

Right Here Baby... HNT

This weeks HNT offering might not have the exact meaning that first comes to your mind.
You may interpret it as saying... "aim that thing right here baby" or " yes that's right, I swallow... interested?" But trust me, you would be dead wrong, ( at least at the moment that is.)
No, what it does say is " I bit my fucking tongue this afternoon and the damned thing is still swollen and it hurts."
My dear hubby finds the photo's erotic... which is all fine and good as long as he realizes that blow jobs are out of the question for a couple of days...
Click the button to learn about HNT






ba

We're Back !!!


After a myriad of both minor and major problems that have kept me from my blog, I'm back. To be more accurate, we're back. After all, what would Tits n Toast be with out the twins? So with out any further ado, excuses or complicated explanations, let the ramblings and photos, which reflect my daily life, continue...







ba

Bosbaan Hengelsteun van € 4,95 nu voor maar € 3,75

Bosbaan Hengelsteun Merk: Livebait Inhoud: 2 stuks Deze bosbaan hengelsteunen van Livebait zijn alom bekend. Ze zijn erg gemakkelijk in gebruik. De bosbaan hengelsteunen zijn voorzien van scherpe punten aan de onderkant, hierdoor kunt u ze gemakkelijk in de grond plaatsen. De bosbaan hengelsteunen hebben een lengte van 50 centimeter.




ba

Strike Pro Buster II Deep Crankbait

De Buster II Deep Crankbait is 12 cm lang en heeft uiteraard weer de bekende ratels. Het is het perfecte kunstaas met een multifunctionele actie. Door de 3 bevestigingsogen kunt u variëren met dieptes van 2, 4 en 6 meter. U hebt dus controle om met 1 type plug op verschillende dieptes te vissen en de vissen te vangen ongeacht de waterlaag waar ze zich bevinden. De Buster II Deep Crankbait is suspending, wat betekent dat hij langer in de “strike zone” blijft hangen!




ba

NBA DFS: 3/21 Injury Update

The Fantasy Executive provides you with an NBA DFS injury update to help you cash in on DraftKings and FanDuel!




ba

Scouting The NBA DFS - Tuesday, March 22 (Premium)

A good-looking 4-game slate of NBA action tonight, and the Daily DFS Breakdown will help you cash on DraftKings and FanDuel




ba

Scouting The NBA DFS - Tuesday, March 22 (Free Preview)

Fantasy Basketball Expert Nate Weitzer will help you cash with your DFS NBA lineups. This is a free preview of his PREMIUM NBA DFS Rundown!




ba

NBA DFS Projections - March 22 (Free Preview)

Check out a preview of our daily NBA DFS projections in the forums, part of a new DFS package exclusively created for #FullTimeArmy!




ba

Minor League Baseball gets the fantasy treatment with launch of Futures Fantasy Baseball

Futures Fantasy Baseball ? a new fantasy baseball site for the minor leagues ? aims to grow the business of Minor League Baseball while capitalizing on the interest of fans in baseball?s next generation of superstars.




ba

Need to Know Players: Tampa Bay Rays

Dr. Roto reveals two Tampa Bay Rays to look closely at in your 2016 Fantasy Baseball draft!




ba

The Fantasy Exec's NBA DFS Advice - March 22

Corey Parson aka The Fantasy Executive delivers two players to build your NBA DFS teams around tonight.




ba

Dr. Roto?s Overrated Fantasy Baseball Players (Premium)

Dr. Roto lists one player from each position that he believes is overrated heading into the 2016 Fantasy Baseball season.




ba

Scouting The NBA DFS - Wednesday, March 23 (Premium)

One of the last big slates of the NBA season is on the docket this Wednesday, so cash in on DraftKings and FanDuel with our top DFS plays




ba

Scouting The NBA DFS - Wednesday, March 23 (Free Preview)

Fantasy Basketball Expert Nate Weitzer will help you cash with your DFS NBA lineups. This is a free preview of his PREMIUM NBA DFS Rundown!




ba

NBA DFS Projections - March 23 (Free Preview)

Check out a preview of our daily NBA DFS projections in the forums, part of a new DFS package exclusively created for #FullTimeArmy!




ba

The Takeover Podcast: NFL Moves & NBA DFS

In this edition, Corey hosts FullTime Fantasy Sports's Mark Morales-Smith and Matt Brandon to discuss Fantasy Football and tonight's NBA DFS slate!




ba

Dr. Roto's Fantasy Baseball Vets to Avoid (Premium)

Dr. Roto lists one Fantasy Baseball veteran at each position to avoid this Fantasy Baseball season.




ba

Scouting The NBA DFS - Thursday, March 24 (Premium)

We look at this 5-game slate of NBA action and bring you the best options for your DFS lineups on DraftKings and FanDuel




ba

2016 Fantasy Baseball Injuries to Consider (Premium)

Dr. Roto looks at several MLB players recovering from injuries to determine whether or not you should be afraid to draft them this Fantasy Baseball season.




ba

Scouting The NBA DFS - Friday, March 25 (Free Preview)

Fantasy Basketball Expert Nate Weitzer will help you cash with your DFS NBA lineups. This is a free preview of his PREMIUM NBA DFS Rundown!




ba

Scouting The NBA DFS - Friday, March 25 (Premium)

There's a huge slate of NBA action tonight and we bring you the top values, plays, and games to target for your DraftKings and FanDuel lineups




ba

NBA DFS Projections - March 25 (Free Preview)

Check out a preview of our daily NBA DFS projections in the forums, part of a new DFS package exclusively created for #FullTimeArmy!




ba

Fantasy Football NFL Depth Charts

These are fantasy specific depth charts and may not always match the "official" NFL team depth charts.




ba

Dr. Roto's Fantasy Baseball Auction Strategies (Premium)

Senior Fantasy Baseball Expert Dr. Roto lays out a few guidelines to help you triumph in your Fantasy Baseball auctions this season!




ba

Scouting The NBA DFS - Saturday, March 26 (Premium)

There is a 9-game slate of NBA action on Saturday night and there are tons of value plays to help you craft balanced DFS lineups on DraftKings and FanDuel




ba

Scouting The NBA DFS - Saturday, March 26 (Free Preview)

Fantasy Basketball Expert Nate Weitzer will help you cash with your DFS NBA lineups. This is a free preview of his PREMIUM NBA DFS Rundown!




ba

NBA DFS Projections - March 26 (Free Preview)

Check out a preview of our daily NBA DFS projections in the forums, part of a new DFS package exclusively created for #FullTimeArmy!




ba

Fantasy Football Week in Review (3/20 - 3/26)

Mark Morales-Smith lists all of Fantasy Football news from the past week. No spin, just the facts!




ba

2016 Fantasy Baseball 5 Star Rated Draft Kit

FullTime Fantasy Sports's 2016 Fantasy Baseball Draft Kit provides a comprehensive package of content that will help you DOMINATE YOUR LEAGUE!




ba

Scouting The NBA DFS - Sunday, March 27 (Premium)

We break down this 4-game slate of NBA action with the top plays for your DFS lineups on DraftKings and FanDuel




ba

Scouting The NBA DFS - Sunday, March 27 (Free Preview)

Fantasy Basketball Expert Nate Weitzer will help you cash with your DFS NBA lineups. This is a free preview of his PREMIUM NBA DFS Rundown!




ba

NBA DFS Projections - March 27 (Free Preview)

Check out a preview of our daily NBA DFS projections in the forums, part of a new DFS package exclusively created for #FullTimeArmy!




ba

Scouting The NBA DFS - Monday, March 28 (Free Preview)

Fantasy Basketball Expert Nate Weitzer will help you cash with your DFS NBA lineups. This is a free preview of his PREMIUM NBA DFS Rundown!




ba

Scouting The NBA DFS - Monday, March 28 (Premium)

There is a huge 10-game slate of NBA action this Monday night and the Daily DFS Breakdown will help you cash on DraftKings and FanDuel




ba

NBA DFS Projections - March 28 (Preview)

Check out a preview of our daily NBA DFS projections in the forums, part of a new DFS package exclusively created for #FullTimeArmy!




ba

NBA DFS: Dallas Mavericks - March 28

Corey Parson aka The Fantasy Executive discusses a key injury in the Dallas Mavericks backcourt and the affect on the NBA DFS world.




ba

Dr. Roto's Must-Have Fantasy Baseball Player (Premium)

Dr. Roto reveals a must-own catcher he will be targeting in all Fantasy Baseball drafts this season!




ba

Scouting The NBA DFS - Tuesday, March 29 (Premium)

We bring you the top plays,values, and fades for your DFS lineups on DraftKings and FanDuel with a 6-game slate of NBA action on the docket tonight




ba

2016 Fantasy Baseball Projections (Premium)

Enjoy FullTime Fantasy Sports's in-depth 2016 Fantasy Baseball projections brought to you by the world's No. 8 ranked Fantasy Baseball player, Shawn Childs.




ba

NBA DFS Projections - March 29 (Free Preview)

Check out a preview of our daily NBA DFS projections in the forums, part of a new DFS package exclusively created for #FullTimeArmy!




ba

Scouting The NBA DFS - Tuesday, March 29 (Free Preview)

Fantasy Basketball Expert Nate Weitzer will help you cash with your DFS NBA lineups. This is a free preview of his PREMIUM NBA DFS Rundown!




ba

Scouting The NBA DFS - Wednesday, March 30 (Free Preview)

Fantasy Basketball Expert Nate Weitzer will help you cash with your DFS NBA lineups. This is a free preview of his PREMIUM NBA DFS Rundown!




ba

Scouting The NBA DFS - Wednesday, March 30 (Premium)

This is a huge slate of NBA action today and the Daily DFS Breakdown will help you cash on DraftKings and FanDuel




ba

NBA DFS Projections - March 30 (Free Preview)

Check out a preview of our daily NBA DFS projections in the forums, part of a new DFS package exclusively created for #FullTimeArmy!




ba

The Takeover Podcast: NBA DFS (9-Game Slate)

In this edition, Corey hosts expert Matt Brandon to break down this NBA DFS slate!




ba

Scouting The NBA DFS - Thursday, March 31 (Premium)

There are some fantastic DFS value plays for this 6-game slate of NBA action. Find out who you should target for your DraftKings and FanDuel lineups in our daily breakdown