Oracle's transparent data encryption, which is part of the Oracle Advanced Security option, requires additional software costs.
This option can be encrypted with a variety of means, including the use of wallet (PKCS#12 standard) and support for pkcs#11 RAS hardware devices.
In 10g, transparent encryption supports column-level encryption, while in Oracle 11GR2, transparent encryption based on Tablespaces is added.
The following is a flowchart for encrypting and decrypting in the official document:
pskwavegf3v+0rxwzbo3y/mp2is2i2g/prqmwlbg7r5i70e6hiuczxtxwjldvwtwokl6z3f+0rzugm4+ k6lvjozfj3vb6lezr8qyncjeeghtgmlvqtoci9xnwejdi7x2izdwgqt5qrjltmufox7qstmn2f2/vxzrkawmzswspyqcwc6wyw8keq+ Vnsp32tcuzglvdsyd4vmphjrr9s1fadgyp/gxmrsqatphnwnsia7ccyy0z7lemzlty6k2inz1imfwsxo6f+/q+eievmled+ Xjnglizclnjaw9hajzz7o0mm60jpbalvglz1mtsrgu1ldc8fltoicbzxb0jbagmegat1h7caczn2jczhruq51wqj3g0xenb6bahsrtvullnytjddwydsi5cxh obwmzs2kmygoucgzjd3qv8cqwqpcoyalahza7v5nyxgxcpo1zdykjmyaz1w9yfdjou0zphfffwdota4kapqy5ryilpogku6dlezcay6oe5c+ 10kbjjhmdgwbuzxsyprqrj/qi9kh1kdadfpiwoc9wv+tbe3x7hco75ndxzwfztr/5juqtshfcx7vffxn4rstdcqgvvwtx2g9uqw++ szsa4apahp0uq4/6ipari2c8ifkyydcvamntusbpi+j3v2dhudzpxskrj/qi9kivmscaxrur9kfhxrfrefigsz/ Jzzjhxezsvy6pbhs37drttudlirofwuutubxm1okhp7eewgjiotqxxts2rbhxyvgm574wyhmzx8ohuoknmobf1s2a1zncawpucglhnydacgdv4x /ezsb+yd7aam/cifokwpunno8ewgixuvepxmvraakhjfzef6d7f1rzqco7ul4hveeblbl0iqqgajumlwi1pdcsfi/wsttqmdkb+dj/ Xs51jwi0skqphmr6d1rjaq0r0sz7vizqbadthagggp71eblwsgltaagyj0xb4wdk6rm3agopjnwad1shhwtwognuyzopuevnsuktnwbjqh7kl7xqoemogz2bznaiq6oics6gitba1a2ooh+yutnohsiwznogaavxmxgxshfcx7vgfislaj0ve5xgull5t8ah+ vcznghlsyqpqmix5pdrul9qjisy5gz0weazgkdyqhxxlouaeljikgizjnqmo+ 4v2qgkyp7ltiii87kjl3qn6ibgcy2j54i4hlasgfvid9xftuyxf76/uyzwg4ft9kfjomzk88zinllwdcvlvogipkjiel/eo5mijfhs/ 6sfdco5hnupyvg0q8gvxatwu7x2sxne0/hvijwhmi3y6fjg5/ dldzgcuapbvd8mg1rdmvsjlcusqxmyznqnvhpasxwewgrnv3ynfvdvr7rczob2shjsliulicagqnqoxgo1gnwbfvlo+ qibjuasriu29iga4dqjmifajeazg7nt3sp9qmax1sbrstbqrck3udmrqnilvmh37trgsgltaakhdewkhagzinrrbasy+ fadyvg0qpdoi52wcfjhft4evyduawtzhpeomq6nqlsvdk1th/uv7vjghilqqtvjgnrrbasy+fac8qsavzdgk1xf/0r5vzcgiluqtfgpvb// 3j0rfr579l1gcktu6igq1jnl+dcns23dkzroxgzzjddxftecvgypic1flxgyr8egyslzj1daqfoklpnvo9xz1208ulzv+o4ev2rd32jg8+ o9kmzxbohhgqup+oj2qylxdzy015thi98azk8i9pbzqu5hqnuqgo0w7birs+p3/zj4/hysn7wflwy7d3xbkrh/b9x1cstpvmj3+9gp7bop2k4/ dva4skaygkwik1zho+3q+15s3tao+ansbc1sqezntoabqp2bpiupu5vzesp5sx5nt5bief1r6a+vmzczd2f77n5bvac+t7pktz/ wyz34n6e9tkvp3zsmptqpkr4nszhp39zsvx7uwgfrc5jxnqyjcv1tl5h1leq8g9zu9zxt0kj3w+pngq7zbgtr/vo8ig3wqm94hkflaqkt2/hzaeo9nhq/knrthaemhc/zh9kgfn0/+8quth6ql/ cwnzkcxhtzrssszxxxk3qm2ufmyuipw962k5f3aypm7stmrhuvu2efqwacilmn1pv7lyzcyce6syuq+51j9ft+ 2rhdd7y5pksmcdcrd4iec2gmls2mnrdeu+ 8r0xkhunwolnyvg9vvycpravjptsqhhq84p8btmsgmxlreoryzhskr15un2fpv0nq7ult7fforkmve1kgplce+ 6wa9ftqcwlsya2lht2hd2kwap8enpb1aq7jc0hzrcjkvx2ljybt1h7gaifpmik1zegharq9f+swxyyxf25ist62fqj18lw6+ ca9lqstinx8dvu8wcsaql/nbve2bhaa+hlzqspz9dxtklft+ pvueq964t1bqedtdszapehttljkvrqf32s46tzdis47rba2z2uy3q302yxxjx7640zi+qqqwshjsvamhpwsfns8v4/ Qnkwoz6zy74srxkfupaqk1byafntqza2lg9ceyu5rzruh2v1jo3hlioy6pbbaygnbyqwlseksi9mbzqu4hknaac1ei4nrmz9jyhw6gesawaveh1rm7zgkkib5 ldqe4ttywaalajeazg7ns3dk81gphqul9ojyoyfjewohyureyjwi3zt2+w+2e4yu+1xyeeuh33f+ 1rrwblitjo1ikc1wgeqzh79g1snxlhg21xoidux/1fe1srwboivcvqqcfqnilvmh37pmgxgudlbxggh/yvhwqpkjkrfze+ ohyulavheyfp0u6higk37xtlqkgflws1khmefjewomyg6tvbco6rjyusqwyvsbrsueraijqbqg8hyzkwpk+6b9cyalabqyfn+ Ciyhkgzipp2sjxj5ekjy6pbbaygnbsrfqjmiorbwxkokscllksgfbaa0lbewoiagahvb8s5rp6uskwavmbqsemrasfqbqk+hsznghlswrjquagriq1fpiwogyj6drccy+rjccuqqyvur+scduwkhagzipp2sjxj5ekjy6pbhvth/uv7vjghilqqtacgvh0s5xh5uskyalah1xf/ 0r5vzcgiluqtkkhvb8s5rp6uskwaveh13f+0rxuzikgluqsk6tvbco6rjyusqwyvuh33f+1rryyi0klugol6drccy+ rjccuqqyx8n1c0rxuzikgluqsk6tvbco6rjyusqwyv+ lkrnbsrfqjmiorbwxkokscllksgfbaa0lbewoiagahvb8s5rp6uskwavmbqsemrasfqbqk+hsznghlswrjquagriq1fpiwogyj6drccy+ rjccuqqqwshjqukraizidq28fyjpenjsyrbhwwgtjqrfqimogobwflouaellcsglriduto2vbewoiagahvb8s5rp6uskwaveh13f+ 0rxuzikgluqsk6tvbco6rjyusqwyvuh33f+1rryyi0klugol6drccy+rjccuqqyvux/ 1fe1sroyi0elwgol4dlocyevlcsmpqidvxf9eevwqoii1elsiobwflouaellcsgltg/ 0crhilsqtscgvp2sjxj5ekjy6pbbb7skg1fpiwogyj6drccy+ Rjfsusqr2shglukueizids28f4jpeqd4xlbhwwgjpqryoetj90t4p9nnu2jytz2adcwxdob6uhaxwkrozcq3c7emm0xq0hjimgwa01fq8gd1aokshub0fj9vt vdaytp+f71z5+gabwq5mlykejfuzgdlrbwv3khcoowjs2e/sz7smhywa1tbc4ffq47lp7+uvytwll+e28y/wb6gb2yhfs3q/ 5tqe2kdhkr52vh40gltudmarccs+o6kz2tnotcxnjcwdv1akvskfw3mungjrhige17mxxtkf5/5yhpd1doecad/ul9qjg/2qxqlx5+ab24o4j+ Ckzyj63lrk+nxw0pwgusbnlf9eefdqwazsolo9yk2xlsng6oxil9t2aadlvt79ojwpaqs/+ gdwzwvofgajah2qsgbhb9hso2qocmqx6u4kzgazwww7km4ayeavbigsyavbddlq5adgwggbyydxsqjudeaorasahvsmovdkamypwi8t9rt42+ xkqo7vwob50zzou7nwkh7pfalr0qwwwqerdfenozijd+tqsanz3lzm/ ajjgfrgcfmgboavrd2aibg92qasalvh7abnhe7mdwgbowdodmajbmx3qakal1h7arnje7iawafqw9gamwvzmb7qa0ik1bzartjc7oawafqw9gimwvdkblqc0y O0btittzq5oaaafaw9gimxvdkalac1yewatyxuza1oaamhaa5gi25sd0ajac9yewety3uyafgbaspyajsl2zge0ancctqcweby3o6afgbaspycjsl3zas0atg dtauye7c0oaaggbwspycjsb3zacwatwhsae2f7swnaagjxb+39/f39/f1tbf6utdt7eqqju3ih/ i58xqgv3ame2tjezpbwzd1uhxjqs3fhq3v0fy/upo4uq+84+goa0wxydtpcayuazonc/ baaabpbatgbqwegsd5qsa4bhopvsamldkasraaaefgno1diactbagaigdwwayuoqbksboaqwa07uoiajmfqaajhy2oko/u1+ ecocqcsyduahpc1w19kg6urt0cja3l/yboaabzksurbvjaeqweghk8n+xjt/fhgzv2n55pnngahxaficll9reoaevjeeu/so00cw/ 245yxbkheaklxw33gkpsqagjjdd7mcjioxdmeok9lmsun9b1ydqjll6juotecfebdju29c6zorusv7jyzfl1ydqjll6juotecfebdlw++ dr6vx9tguwa0asfg/uacemlvvzil92tx7k5/1xx01cfydqbksboaqlrfej7i7nawggcr82rvachf7csme74ssbyajvimgmyda9+ Ojj1tyvehdaemwghfitn/hko3zaasryqdynwh+uxikxdjswa0vvnatrq3oq3gpyeqpxsehdwsixwe1sbrwsvajceuyqnijy2zxjkvh/v4wsuix709+5bco2vmhw8bqgow82dtw/ Izud7co1ur7f7zfs+zcu68v7fl+txijsfvagbo4wa19ojqmo/f7dy/37fmm93sjmxibnobmyd4d+oiskp+uhialoiw7x+2rtr8e3rfnm97vjvi +lvi9kpsfr5x1xgqo4b1wdyf8+yiksvd7cznsbn/xqoa/dic3zvjhnrrys1kuif0+ignt/ V4cpbml4xe9yktiotpxpd2qvabszilaoylj7f1evoey9/kfi3c1vyd/drttua0c9ajeynorsw7v9+i6wbxp/gxcc7oceaubbajqlyqezmbiinu /f78j5n3m5+fx0xxaaqhbyagqmgmjke79xvwmmpezn4dftvcaq6egv9vviwqgrplb+734ttdvmz8pv5quafzddaxgiai/vr5jbu/34jfbvm/ 8ppxqugjydtx2qadwjbztoq3pecjp7f1e/cyyb1gyrh1/egashhrh1fm7ds7zedidi6ns/v78jhjl4k7g9ydhwgqokdsllsvi/ d5dzmakfb3fi98eo7zv7xkm4pgkv5quwewys3jaa4tptljs/zf7frqhdlmhmzcsrn7vxw+ cxd4drlqr7is371ftfbgidxxpj2oj6juisofytltaaosznkhqer8xvwl2n/natsjl6x79arocf6woi+1rlufjawjzmo3z9i5cvg3xciz4vxe/ cvy36n4lryu135+e4alucaq9qixoqai+bmex0yasgi5ua8t7vfhnsjaz91uokry6eb+arsdlo67jshtus/cxcmxlvoq1moyqvcn73t/j/ v78jtjbmfdlo77uel+arkdeaqczapnwfmx7h868w9dwzzwuan0j3u/fb4j9mxn5hfx2jb9jaosdrtashhbei/ vuqmagd8wn7fjd8jtgkyb87xumj0y6bw1xomig1ddcay2wiwqgblbcbnuyjd8eczrhavjvdawwgmpqmiqezmaaimm11he64ql41xqfsbpqudiqhmzaaipjndrxouec+ nv0bbaaalaykotmwbikb/azp88j5nfoz+nx0xxaaqhbyagqmgnjki7v0mxvnm/ Gr6yrcfekzsshzfqimyexfmdq6oj3zmfjv9mvuch1hgmpagkogrvcvo0winv3gt/pcez62qfiv9mvuch1hgmpagkogrvcvo0wimm1fhe97vpxq +kkxjq6jrrhtqsujaohq0yyxbeairie9qn41xqflkodr9qjwgjkrowqvsos4t7vxw+cez/5efjvdaxy30drhtusudiqhkwakrt3fi9+e8z7zm/ dr6yrwjdd1abkvaizgzeu934vfhpm+8zpw6+mk4dvuiosusfkbqk4hfwmgfluwq+mk4dvuiosusfkbqk4hfwmgfluwq+ mk4dvuiosusfkbqk4hfwmgfluwq+mk4dvuiosusfkbqk4hfwmgfluwq+ mk4dvuiosusfkbioqvvlk6orop0mnu6ffnx41xyglumgmcswjqsgmvftcy7jhnbj4lfigv5quwewp40h7vetayagqsmpgnv6b1cjiuuoz/ gq6aheljiptus0bjancykqb1xgfviolryll8kvpclyuoo60r7ueliwkiasgvumvwi0shqwuwa+mk3br6jjshtusudiqhkwawi1xydwyejrsbr+ arscw/qak9qiwgjjriwtvwgq8aqurptqt9a/tvd3f2dlpte+yv1dvgvvvdaxyvgpnbpby/cuimyfyjvdgnbkutvzz83ype+8uqwelsbpqekz+ Yotmqkzgk7aawepb/vnm/c/ff88h7j+9pxspp7goo57gapd+k51mbxld0xxaaqjhsfqletidhyv+whzplbuv/uhpr2q/cabccxae7e+ Hhifqvjenz46/zo1i45lsp2+j3rpj3iw78nu/x4+giauzwgqogdwoedidp1qnxzd8ltozn/xucztody4s/z3uui8z/nzalpb486wmvwsnejvziesrsrrsm2ydur/hj8aqbgpzsbpatjffbqmzgcmvb990h /ene7m/93ju+bh1jbtopyv2mx+ fk1f0sd8q2izinepnsupkwzbgl8usnc42e6sliherec0kqayzq4wd9nxywqv27z12do9t1fiwnsxni173zpuzwy4nsz8t/ bvy5je9vrn9k3gtloqug9l5q0x1khjtleud9kwrddgb4x77x4++aaptuyilzpluk2l7za3/ 9gp7x7r2glzv8cez8k1sjzxuxzv5ts4cbt25vp3c+0+zp6o0qbwprzjb6jk9dvw6o4ropc2+ vvgx2pq6ta5nwlz6lf2yzzbkdeysd75zuqrnjklu1dkqzq637armrthzdwtz2pd6kr1qujvov9w7q9+stj7jkzxibryc2zb1m/cnoo/ C7n5q6qj0ptt1qiqtlcttd6hrmzakjh1cfo0wxjq6jrrhtqsvpv7zluogijnzefw22t1cfadjpesp68qflzvv1mc8alaj0rjypsuozm9kr6rnelbje6gvd /2ykl7i5ueqswagf6woi+1rreyon91wo+vmulmq/ubeeurl/rflvet6d+et2kknz3h9b982sjpml88kdd7tkhjj+ yqtkgefe2mufhmsgesyxt2rtmwbihfhjiptuyxlvbgqjao0+/4kzb1y5h6wsmdugj/+ 9hewr3aukfvdczoyvw3p6airkqwrcefwhnriqjglxser9qgccl8j9zjr2rpvbwffmo/63l/xb/wrsu9cs6hub5qzt6+ l1dxcwo0kmlzjnlinen41xyflzt+otecvjewaecwz2efmjcorhnefutc2+91sws+3tdrnxr270pitspiyzsak1zghviolmjt1txkt5+s/ Go5ftvcgbzxqtic+rwhhzxb45xoya7ear8bqzjgrsvqgol1x408hsl0/nvyrcuiwgonpt3g/vum3abj1n0ozlzihq/ekreywaskbn1yeh1uwhprma84b9n2u/aoddkzgmn6mtcfql0bidmrqvakrkuxyarr8+ nluuw8ylzkmga4lydug0jfkhqu/gcezekvxcqxgfi2r8cs91ciaj/ uddv2rccybmezwb6vxle658lj9xqizgbpwwyntj0q7htqzoi3h5fsok2fqf87gr6yrsge1tjbzfk4jmyeobge/cazlnq7zvz+t/ ogecb5vnfwbax65knwt2vkmmhw2ngohmxdf7ea3wystxm/af9pndltjmv1mgi8ush1h2qmyyti8zoopehl9o7gd/ cay2lztmnrjr91t6jcfvhbr6jjshpu5zusiu41hcsahv747xqpjn8ekd24jqdr7+ jixozscoxeljipturlinuh1tfeijzbksvelegz8jhhzvmkvpitwueo40h7vevgqgvin7/hspdz+ e4wskufx0xxifwnfe1saiowro5ihp9sqvcor4uhxm2bkuykzn3gpdbgyfnn1h8k/hosozga1hubi8fd4ttcyqmqmtfmn0vfgnf7+ lpljs8lqgwfidpsi+ar4ttcyqmq8ttec31ndaijmkjesgduyhrffv8bvgpffjwzr6jdnllc61vceklehzaaiub38jphuflnoyb+ arsbavspufvletoqyumoukg4hvwmmnkxqayjhv9mvwmvqgpywzeyktya1syaa4nbwm2dqwaq+gbiqv2/ nn5geiw81zgad2rvrazusfqtf7ea3wsxkkyux3fh8rtu/6stgrsl1zczipansltcd9y+ Etfuzj3hfl8jvglniigtjukorqfhtrp2luser9qiwwozy3vefw8hfqz6rcoa3wciiehy0ttagm1yuoo60r7uelkug+thcrlj1wyudvwlgfpxwq +kkxjq6jrrh1yo751dms4afgfmsshelews7fhomlcphufodq9liotrxnlxl7crba0sbb41odrmlw8lapar6iiwjhr2/cuywlbcpqdptatj5b6dm7nluta5vtfkyjizkr6wvjmwt/dwnmj0ssjoshcuaut6qhqdwzdd78p3m/vhh+ xxybbzlvu3jgtgsldqdi6mkusynzc38pceyqsyynpjzm//xefzkhkphaiscnq+ onn85k5e0g35gelor1bohfysk28fvgpnkimudmt3zktfgwnbtjftbyryunmekf80amsstktpmu6vugifxjorbww+cwcsio+ortxr3nev+ prk227lepvgmcrxyjcqu/dvbjcd+w340dztl1ccolla7kg4hvwlmlyvsjefaamtfvv59ex7/ ulu1nlgpdavrkfjlstxb7cxrg3hzp69actv4ttcdwwrksajwo3sm9i73r2hnuruwrke5n/m7bo4u0lea96k8fps0+ bvoabbboxk2o1dnxdcypndmdebneseoyg2sv8zvghnmiind8m41/gogonjfjtl4opsyzo28hyarybdjzin+ zbsla3dstmbtklfgb4krrsvmwy2sk8hgqx+3nlhpranjsh4c2fl6nylezvzmnphiszlfwhgo3d0ybmfupc+o3xwji0oiwi2w5/f/ zcnxdpjeznb06oxxlkodr5ij8dvfw/kz2onvb3cwj0rbk1nymwdwxxnipdumssfa5/ Fh9selwmertn9hjvejp9xn3k7zmluszmbnqsf15sgreqyvjuhp4wpslre9jqpzvqayuofofzhiowwtkg8wphp2voebkc9ez2inz5hq8ed839yy30drhtxfx +ebpvc2j2d8cdyv2cqv6agyao+stam+23aqi+usgq7hwsxvpq6c3nleagy/ me6a9qvjwy0dyc8hyaodjepinz0skffs1aqzmaxzpbwz3wp8zink2itjtpe/ 6our88yssiwnsay9oonawwcezemlhwje714kyhal1obxzkseu68vy6lvgjiw5wj346ztqfzlhv+2a3ur4ek1ryidk4qfymypfmtifcbjrcafh1/jmgi1bt72vniqubiuzwvinecb2comxoqvasek0/4friyd1slp+crwpamwnas0c51/ej9zb/ m2u7ottsn8rky3dznxpq5ydbkh2qoy/q9h+149swe1zlbm6lyw8ti5bwktu55stzvxdrmdlavedm1wjrchvmpejwwn/ pjkqyifhjlraathb5zawqs3gn/rvt3pjpey3pt9h9poo1riwdo+wo3zm5iv7c8nt9i+ Pfpdye602laazmavwftuzuj8xleackou5bl6xq1dnnknojowwa07sapgklmrcx6rnlw9llmq4ypr4rl6jqp6nzgmvyccilgno7aqycrwnser79qx1xcc1a /z4iqmvepwndpgbfgnm7aqyeeun6zl6juo6tfmq5itik8t8y5qlqohhgsryqfwwmyy4e9mmkmvw7flfy30xtvzviu1kewmwfhqcfbddixbaaxnssqjblcit /6/1de4dvdrjuemc/g4yhjvwbq88qo3kbn9jq2s+i0x/qhz0exlooemlfsbre3yvau4kfluiuhgamqnims+dmus/ tnppcnyxbcsz8h2mr1ctc1wdvbddixbguzn8+n73s/pndxsdojyjesrq/ jndhefflnflpsosrowcqyghvi2mpia55y9yitwb1m6vpkjt5fbdp8kfuofvzbw437/9z+ znz8jcn3ek0fiwa37i1weriydwbri2jnqlv3lfqzll5ku+xhnkm1vbneuivyjmw4tu/ikyjee68d+cbcbq2ehfouydqa60rbu9pfz+ etygzfbdp/ssbwd65pvgm6kyfnlvj2flmx48jycq2eh1swcnl6vzz5jfnq/ Febkxzfjpsabruzi0z4yktjwayya1bad62jbgg1b5dndr7clt4r8advk1xq0gpeugwcxr2joirys1ba8tgxbatibpbeg7fxjcmnjv3r9hnwvqbakuixuhvge2 4Jgneza0lgqnscnwsun/9l1cvs/zop/kbeshbmdw5ynq2egvocwfiz83gkcfhlqxrbw5nl1cvs/bsgs4djsgxewgnzg2cqjpufsxelwycm/ dh0c1a8jl9ir9urrb7ya1bady1ye9tmxedttavklsgw/gdj+zfd1byhsq/bcgoff5i0ceavlvgxdaq+/ c70nrjx5faolpz01cxrbatibzascvsnc2co41urjnxraw6tz1sydb1gno7bmtfcc+ fa719vgwpop1egmlqzwc9bgawdydtuwtltaaqihpyjrtt5wo6e9qzplajcqgnwwaytlqclvxg+da00+ Vqmzujhaj5gadcrgnezaslmq2dtxxztqrcnhanqgf1orjp2rqja2r6gbenrpanjscxeupaxfbteafkxgz3axterygqkagdvi71zgrcal68zbxbasi7iywhwmd amawcaxdy6xvqn+zqqcvxpyjsmvaeamvmrmcjvxq/ask3/p+jiqxxnyspnhue2xyegfabag+ cozeofqganwqzkstzuaagad1dakewtxmnysbk81aaceunztxqk+c/uf15p8fi309sonn7bvwogagfowgiphj+bak4/ vwgoaamghwcec71x9wcvm/g+rmss4mfp3ibs6bgd4dlzjsni3n/v/sbqowh7bxds6c6hvnqcal6luxeczrmalm3cu9gguplaigkq/ aaaecb9zytve3lyjsedwmbusfvt6bqdwsoydy/i/q4hvydr+ 9bmxypapzwaaeexgnatjamkbykxrxkhefuz4ekqj22dxbwd4gkwvjbpzvx17ffwlmochl66po/o1sqvldlqukpekacaqaou06s7vhxz2hj+ 5dh0c1a+jktjdywa1aaaewgqiht2cz57wm5euj6p6nvefs6wgh6aaaigxu5zg3bm6g0+d7yrl18dr/zqogm03gq+ Skeqp3wyfglhgnfrcuvhdjfpyvrcasuudtzwwggaqmkkllvdo1dhehnwodyk2ygafauazaca2wi3usc6faqxsntqcy+ gk0asaqftc71xyjrc3bygsqcgwggaax4i6c736yut5kq3jx2r8v7e1wfazaaafcbxzvd22flgnr2gp4gjqaqbah+ xcsxctycdqdayxuwsaappg50qcs07+ pevgqsbyelxmlqca8ewqquxcsfazk1zi0vvxvl8gwzlgmlibaczcjlrkzpuehz7dfs5dh0f1axascs4jfqdaima13oy1/muhl66po/ o1sqxrcd5jg0wmaczl8aiye+fcary7eudhj+cttmfqamcyydxif9m1/ Zqxqavwf3ysmdpcagb4ywwzdlxzebuak38dztvr2h6gksnjagd4aqvr3tlgpz5zmnysxv9bqgug1qaagevgnatjdfgn5bdq3hcfaqawnng7v0dwrcnhavxrr /sbcgaajcx8zvu2unbkyzuuh6bgnqaawhb45+olrjx5wi3/ n371gqpwawbghqnqboydqyp4kfntmhysrk97rayawfsglnnao5f9b6bcum4crgdb+ oklqquascbyjeg9m7aa9wuictydfigswbyagblfk2tunavjkcypq6eevut3nbaaaaalsbpj22m1lmo++vrjb5bg+ Awagdof62tunetohtv4cfmwwgolhs8aahgeq1fpafwdlpw3unqvgysrwv492mbqaadyj/do1rdca/l5bkrpk6jvrvvl5qaa0elgnasvunbkyzx +3/jvb4bifqaa7bn75+ oirjx5wi3o4gjqaqbah4f3ro7vu2i13iq9goupbqaafutdufp6x2q4cxsef1mlagbxuktu1j2r45hgd6vhkowrxewtaadoq7prdy7h/ 67gslajywddsd8rgqda0ma1ss38wy36nvef6xsdvgmaqjioehp457l/acql6+oofk1gwtra92v8r14aaidvgbb8hi4lll0fr/ Vrwgug1qaamm7bqhp+53obfjiuws5dh0f1a8ilntvq4dmaal6d1fgyfjiuj5op1ehpj9uaalbp+ j3rbxctyecbkd1jwdoaangn6s7fv6vxgnwrifzlvwaakctwztuxbqygm7bhcdg1aacgj8a7l/ 03yvinachf1aiagdptftjwzoxveh3zjsiewcxuagcahmyihhjnwmq8vnklyyd/awu7agawcawgvup1zvsii9uaahbeyx1+ uxvm2tluwx7bbxq5uhtdoijagm1xgi+ptze+awbgklinjuacuhxcuj6o6teef2zsuw2sbgdabfpk8cuty8qwor72cc6jy86l6+ oofk14wqzadxwgaiaay1qnt0/ij6tkdnm5dh0c1a+jklh38ppcddulaab6ilpzhc2wgi9u3lhyi7imvaaa0e3gnevti42fkw+gtf8zfnxb+ Ollsauaan1e3blcpnxgy65fr8jqaadyj+rohdv4jr2r8erjlzhaaadqr+cdy+shkfinj1yd/weaie+ l9q6wc70klqzlv64bb7gcyfgnaacplmrvcjvxq+dcovzruneq4qx7+ikxpgmaqausrmnwyvh+ dd04ipccytuaapxsetj8cuuysmwohz2csypy6bpxeaiwbe8mz7jkaabqyzwryf/xqi9dh0f1awil1hc8mzyzegeawdpz583zdghfsc6+7hrp+ jiqxxnvso7g55mzrbcaadyd1xi8slkos9fhuf2aqil9uv7fguwfaib9vti5xgwxnpxl18dr/zragnvcgtuaalbp+j3lstxifwol/ zqxwbdmudceaiaoou5chy80fkasxsrfqdeugaaadbb75+oirjx5wi3o4lgnaacdjl+2p28xcbt2cc4sxl+ ugwcrw7copxpydqaamxz1ofbo1rfcwiv/xtcoasgs4gjqaqdak7aapedckvzruneqcjyef1mlaadesldpdq4kulae/ 7puhmqgv8tuagcat2xyjvxwyqn+da01cl8wuqaa9tnffs7btidfnofw5nxpwmsqtmgwaabcip+02z6s85+3gpijaaaagmbgnqaaagaiwa0aaacyynbxf6aagbzih7vup3+noonalc+ dacameatbgqcwyxb9h5zlovpylcuealaaaj5i1ub52upyfce5s/33twv85aza8ef5igl8d1h6dfgj3zja7jmaybcsboanslajtlunz7kfizr+ wvpr5uz2r429dzkdadbbagb4omq1kmcm9scnfwu/ufnrw6urpg8ona6mnhsk29efanggqwhgicengtlmjxcotxqv3hutxl+ bv40bwajydqbpzpfstx83zk+a9afkzdivgvmbcobfsboanrh/rjccl51p2f6zn1ykzx4/ e3nsq2w03wcawccnf8elqwgwejwvaaaz8lzde1qamjfh5xaaakpaagaaambesboaaaaweawgaaaatct/drttuqeaaeaq+ Liraaaatasraqaaabpbagaaambeilyjy+wxsbvacitq6m5mkl8jtxnqs3fhq3v0fz6u35hbdpwlu4ghwsznwfbai//31x8aaadanlaaaaaamjh /AWZX4RZA4KGDAAAAAELFTKSUQMCC "/>
Here's a simple test.
First, add the following paragraph in the Sqlnet.ora file:
The code is as follows |
Copy Code |
encryption_wallet_location= (Source= (method=file) (method_data= (Directory=d:oracle11.2.0networkadminencryption_wallet))) |
To create a wallet key in Sql*plus:
The code is as follows |
Copy Code |
Sql> Connect/as SYSDBA Connected. Sql> alter system set encryption key authenticated by "Eygle"; System altered. |
Close and open wallet:
The code is as follows |
Copy Code |
Sql> alter system set encryption wallet close; Alter system set encryption wallet close * ERROR at line 1: Ora-28390:auto Login Wallet Not open Sql> alter system set encryption wallet close identified by "Eygle"; System altered. Sql> alter system set wallet open identified by "Eygle"; System altered. |
You can specify encryption when you create a data table:
The code is as follows |
Copy Code |
Sql> Connect Eygle/eygle Connected. Sql> CREATE TABLE TDE (ID number (m), data varchar2 () encrypt); Table created. The sql> insert into the TDE select User_id,username from Dba_users; 9 rows created. Sql> commit; Commit complete. sql> connect/as sysdba Connected. Sql> select * from Eygle.tde; ID DATA ———-———————————————— – 0 SYS 5 SYSTEM eygle 9 outln appqossys dbsnmp wmsys DIP oracle_ocm |
Encryption and decryption is done automatically.
Query Dba_encrypted_columns view to find encrypted columns:
code is as follows |
copy code |
sql> select * from Dba_encrypted_columns; owner table_name COLUMN_NAME encryption_alg SAL integrity_al ———-————— —————— – ————————— –-———— eygle & nbsp tde DATA AES key Bits YES SHA-1 |
If wallet is turned off, the encrypted column is inaccessible:
The code is as follows |
Copy Code |
Sql> select * from Eygle.tde;
SELECT * FROM Eygle.tde
*
ERROR at line 1:
Ora-28365:wallet is not open
Sql> alter system set encryption wallet close identified by "Eygle";
System altered.
Sql> select * from Eygle.tde;
SELECT * FROM Eygle.tde
*
ERROR at line 1:
Ora-28365:wallet is not open
Sql> desc EYGLE.TDE
Name Null? Type
—————————————————————– ——– ——————————-
ID Number (10)
DATA VARCHAR2 (m) ENCRYPT
Sql> select ID from eygle.tde;
Id
———-
0
5
34
9
31
30
32
14
21st
9 rows selected. |
When you encrypt a column, there are two options: Salt and no salt.
Salt adds a string to the data before encrypting it, increasing the difficulty of cracking, making the same string encryption result different, and for no Salt, the same string can get the same encrypted output, its security is relatively low.
On an encrypted column, if you use the Salt method, you cannot create an index, and salt encryption and indexing are mutually exclusive and cannot be set at the same time:
The code is as follows |
Copy Code |
Sql> CREATE index idx01 on TDE (data); Create INDEX idx01 on TDE (data) * ERROR at line 1: Ora-28338:column (s) cannot is both indexed and encrypted with salt |
When encrypting with the default Salt method, the index is allowed for encrypted columns:
The code is as follows |
Copy Code |
Sql> CREATE TABLE Tde2 (ID number (a) Encrypt no salt,data varchar2 (50));
Table created.
sql> INSERT INTO Tde2 select User_id,username from Dba_users;
9 rows created.
Sql> select * from Tde2;
ID DATA
———- ————————————————–
0 SYS
5 SYSTEM
Eygle
9 Outln
Appqossys
Dbsnmp
Wmsys
DIP
oracle_ocm
9 rows selected.
Sql> commit;
Commit complete.
Sql> CREATE index idx1 on tde2 (ID);
Index created. |
When you perform an export, Oracle gives a hint:
The code is as follows |
Copy Code |
D:>EXPDP eygle/eygle directory=temp dumpfile=tde2.dmp tables=tde
Export:release 11.2.0.2.0–production on Thu Sep 8 15:35:19 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to:oracle Database 11g Enterprise Edition release 11.2.0.2.0–production
With the partitioning, OLAP, Data Mining and real application testing options
Starting "Eygle". Sys_export_table_01″: eygle/******** directory=temp dumpfile=tde2.dmp tables=tde
Estimate in progress using BLOCKS method ...
Processing Object Type Table_export/table/table_data
Total estimation using BLOCKS method:64 KB
Processing Object Type Table_export/table/table
. . Exported "Eygle". TDE "5.562 KB 9 rows
ora-39173:encrypted data has been stored unencrypted in dump file set.
Master table "Eygle". Sys_export_table_01″successfully loaded/unloaded
******************************************************************************
Dump file set for Eygle. SYS_EXPORT_TABLE_01 is:
D:temptde2. DMP
Job "Eygle". Sys_export_table_01″completed with 1 error (s) at 15:35:23 |